lawinslow / hydrolinks

National Hydrography Network Dataset Tools for R
Other
10 stars 4 forks source link

On first install/run of hydrolinks, error on set_local_path #32

Closed lawinslow closed 6 years ago

lawinslow commented 6 years ago
> hydrolinks::set_local_path('d:/hydrolinks')
Error in file(file, ifelse(append, "a", "w")) : 
  cannot open the connection
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
  cannot open file 'C:\Users\LAWINS~1\AppData\Local\hydrolinks\hydrolinks/path': No such file or directory

I think it is from trying to save the path file without having first created the AppData directory.

lawinslow commented 6 years ago
Browse[2]> file.exists(rappdirs::user_data_dir(appname = "hydrolinks"))
[1] FALSE
lilyhahn commented 6 years ago

fixed in #28.