jennybc / here_here

I love the here package. Here's why.
313 stars 29 forks source link

error on shared network #16

Open gadepallivs opened 4 years ago

gadepallivs commented 4 years ago

We work on shared network drive over VPN. Have been using here package without any issues when we open a .Rproject file located on the shared drive. Sometimes ( may be because of slow internet speed), rstudio throws cannot connect to internet error when connected via VPN. In this scenario we use the desktop shortcut of Rstudio and set the working dir to the shared drive and work with the respective R files. However, here function still recognizes the "C:/Users/name/Documents" as the working directory and does not read the files on the shared working dir. If we remove the here command from read.csv, the files read normally as expected. Any suggestion on how to make here command work in the above scenario ? I did the following after setting working dir

here::set_here()
File .here already exists in P:\shared drive\ folder\projects\r_projects\covid_Dashboard\app

here::here()
[1] "C:/Users/username/Documents"