diff --git a/README.md b/README.md index 16324164900928172f19133d50241799f5ba8494..8f884a0964628b92d7db48398f142059ab2c6557 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,38 @@ In this context, the development of **floodam.data** has received the support of - download and prepare data from INSEE. +## How to get **floodam.data** ? + +You can download and install it from this archive: +[www.floodam.org/library/floodam.data_0.9.37.0.tar.gz](http://www.floodam.org/library/floodam.data_0.9.37.0.tar.gz). + +For instance, in a linux environment, you can use those bash instructions: + +``` +# without devtools +wget www.floodam.org/library/floodam.data_0.9.37.0.tar.gz +R -e "install.packages(pkgs = 'floodam.data_0.9.37.0.tar.gz', type = 'source', repos = NULL, dependencies = TRUE)" +rm floodam.data_0.9.37.0.tar.gz + +# with devtools +R -e "devtools::install_url('www.floodam.org/library/floodam.data_0.9.37.0.tar.gz')" +``` + +In case you are not using a linux environment, you can do the same within a R session: + +``` +# without devtools +archive = "floodam.data_0.9.37.0.tar.gz" +url = file.path("www.floodam.org/library", archive) +download.file(url = url, destfile = archive) +install.packages(pkgs = archive, type = 'source', repos = NULL, dependencies = TRUE) +unlink(archive) + +# with devtools +devtools::install_url('www.floodam.org/library/floodam.data_0.9.37.0.tar.gz') +``` + + ## How to get **floodam.data** ? For the moment, ask us. It will be public soon.