Commit d4838743 authored by Dorchies David's avatar Dorchies David
Browse files

doc: simplify installation step

parent 6a449051
No related merge requests found
Showing with 2 additions and 5 deletions
+2 -5
...@@ -18,14 +18,11 @@ This procedure installs libraries in the folder `~/R_LIBS` of the current user. ...@@ -18,14 +18,11 @@ This procedure installs libraries in the folder `~/R_LIBS` of the current user.
cd ~ cd ~
mkdir R_LIBS mkdir R_LIBS
echo "R_LIBS='$(pwd)/R_LIBS'" > .Renviron echo "R_LIBS='$(pwd)/R_LIBS'" > .Renviron
Rscript -e "install_packages(c('roxygen2','httr','jsonlite','textutils','dplyr'), lib = 'R_LIBS')" Rscript -e "install_packages('devtools')"
git clone https://gitlab.irstea.fr/in-wop/sgldatagrabber.git git clone https://gitlab.irstea.fr/in-wop/sgldatagrabber.git
cp .Renviron sgldatagrabber/ cp .Renviron sgldatagrabber/
cd sgldatagrabber cd sgldatagrabber
Rscript -e "roxygen2::roxygenise()" Rscript -e "roxygen2::roxygenise();devtools::install()"
cd ..
R CMD build sgldatagrabber
Rscript -e "install.packages('SGLdataGrabber_0.1.1.tar.gz', lib = 'R_LIBS')"
``` ```
## Run the script ## Run the script
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment