-
Notifications
You must be signed in to change notification settings - Fork 46
Description
I have been trying to use here() within a project where I am importing data from an online Research database.
I have then attempt to use here() within the saveRDS() function e.g.
saveRDS(mydfname, file= here("02_data", "mydfname.rda"))
This would ensure I have a local copy of the data for if I need to work on the project but I am offline.
When I execute the code my data import runs as expected, but the saveRDS function returns the following error
Error in here("02_data", "mydfname.rda") : unused arguments ("02_data", "mydfname.rda")
I have searched the issues listed here and online but have not found any other reports of this issue.
My work around is that I am having to input the file directory in full for saveRDS() but here is working for file calls using readRDS() and source()
I may be missing something simple so excuse my ignorance if that is the case.