The goal of
cloudstoR is to simplify accessing data stored on
cloudstor via their WebDAV
interface. You can use
cloudstoR to download or upload files, or check
the contents of directories.
You can install from CRAN (soon…) with:
Or install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("pdparker/cloudstoR")
You will need your cloudstor username and password. The password is
not the one you use to log on to cloudstor. Instead you need to use
cloudstoR provides an option to store these credentials using
library(cloudstoR) my_data = cloud_get(path = 'mydata1.csv')
Note that calling any of the
cloud_* functions without a username or
cloudstoR to store your credentials locally. You can
choose not to do this by providing a username and password.
my_data = cloud_get(path = 'mydata1.csv', username = cloudstor_username, password = cloudstor_appPassword)
cloud_list(path = 'cloudstoR Demo') #>  "Another Folder/" "mydata2.csv"
my_data = cloud_get(path = 'mydata1.csv') my_data #> A B C #> 1 1 1 3 #> 2 1 2 2 #> 3 1 3 1
cloudstoR will try to open the file using
rio and return a data.frame. If you
want to use a different package to open the file, or you just want to
download the file without opening it, set
open_file = FALSE to return
a file path instead.
my_path = cloud_get(path = 'mydata1.csv', dest="~/mydata1.csv", open_file = FALSE) file.exists(my_path) #>  TRUE
cloud_put(file_name = 'mydata.sav', local_file = '~/datatosave.sav', path = 'additional/path/to/folder')
If you don’t know the exact file path you want to follow, you can find
If you need to delete your credentials (e.g., because you revoke your
app password), you can restore them by calling
The default webdav address is
https://cloudstor.aarnet.edu.au/plus/remote.php/webdav/. If your
organisation uses a different address, you can set this globally at the
top of your script:
# Set the global webdav address options(cloudstoR.cloud_address = "https:://my.webdav.address") # Check the current value getOption("`cloudstoR`.cloud_address")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.