Because my previous question remained unsolved, I tried to specify the download directory using firefox instead of chrome.
So I specified the download directory:
fprof <- makeFirefoxProfile(list(browser.download.manager.showWhenStarting=FALSE,
browser.download.dir = "~/",
browser.helperApps.neverAsk.saveToDisk="text/csv",
browser.download.folderList = 2L))
remDr <- remoteDriver(extraCapabilities=fprof)
as exactly is done here.
However, the files still get downloaded in my default download directory, rather than my working directory in R.
Does anyone have a clue what I might be possibly doing wrong?
This looks to be caused by the bug here. As a work around until it is fixed you could simply double escape everything, e.g.