-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set download directory #66
Comments
Thanks for this. Are you talking about a specific function? |
Sorry! I'm looking to download pangaea data to a specified local directory and then load the data into R and be able to work with it offline. I'm running the below function (and data set): data.df <- pangaear::pg_data(doi = '10.1594/PANGAEA.863689') |
@ktoddbrown what "environmental variables" are you talking about? |
we store the base path to save files to in |
Yep, this is what I was interested in. |
can you reinstall |
changes in caa3cb3 |
This is not quite what I was looking for. I would like to download the files to a specified directory. For example right now
but I would like to point the director to: the folder "/Users/name/Documents/Datasets" |
I've been planning to make it easier to set the path directly ropensci/hoardr#12 but not done yet. for now try this: x = pg_cache
x
#> <hoard>
#> path: pangaear
#> cache path: /Users/sckott/Library/Caches/R/pangaear
iset_the_path <- function(path) x$.__enclos_env__$private$hoard_env$cache_path <- path
iset_the_path("/Users/name/Documents/Datasets")
x
#> <hoard>
#> path: pangaear
#> cache path: /Users/name/Documents/Datasets |
@ktoddbrown sorry for the very long wait on this - done now - can install from github master branch. just set your own path with |
Hi I was wondering if there was a way to set the download directory without reseting the environmental variables?
-Kathe
Session Info
The text was updated successfully, but these errors were encountered: