diff --git a/DESCRIPTION b/DESCRIPTION index 374ae78..331b0b0 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -17,7 +17,8 @@ Imports: httpuv, dismo Depends: - raster + raster, + R (>= 3.2.0) Suggests: knitr, testthat diff --git a/README.md b/README.md index e76f8e5..0565c16 100644 --- a/README.md +++ b/README.md @@ -14,23 +14,35 @@ You'll need to be using R version 3.2.0 or higher. On Windows: ```r -# install the raster package first -install.packages('raster') - # install the Windows binary of the latest release -install.packages('https://github.com/zoonproject/zoon/releases/download/0.3/zoon_0.3.zip', +install.packages('https://github.com/zoonproject/zoon/releases/download/0.3.1/zoon_0.3.1.zip', repos = NULL, method = 'libcurl') + +# install dependencies +install.packages(pkgDepends('zoon')$Depends) + +# install imports +install.packages(unlist(strsplit(gsub(',', '', installed.packages(fields = c('imports'))['zoon','Imports']), '\n'))[-1]) + +# load zoon +library(zoon) ``` and on OSX or Linux: ```r -# install the raster package first -install.packages('raster') - # install the Windows binary of the latest release -install.packages('https://github.com/zoonproject/zoon/releases/download/0.3/zoon_0.3.tar.gz', +install.packages('https://github.com/zoonproject/zoon/releases/download/0.3.1/zoon_0.3.1.tar.gz', repos = NULL, method = 'libcurl') + +# install dependencies +install.packages(pkgDepends('zoon')$Depends) + +# install imports +install.packages(unlist(strsplit(gsub(',', '', installed.packages(fields = c('imports'))['zoon','Imports']), '\n'))[-1]) + +# load zoon +library(zoon) ```