I’m creating a script to download a spreadsheet from a public website. The script to download the file was ok, but I can’t define the save location of the downloaded file, causing my csv file to always go to the default “downloads/” folder.
I tried some settings but without success. I’m currently trying this, could anyone suggest new alternatives?
fprof <- makeFirefoxProfile(list(browser.download.dir = "C:/Users/jlima/Desktop/arquivos",
browser.download.folderList = 2L,
browser.download.manager.showWhenStarting=FALSE,
browser.helperApps.neverAsk.saveToDisk = "application/octet-stream"))
driver <- rsDriver(
browser = "firefox",
port = 2922L,
chromever = NULL,
extraCapabilities = fprof
)
remote_driver <- driver$client
New contributor
Jordão de Lima Alves is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.