5
When I try to install R packages using shell
, the following error occurs:
My code from the archive gitlab-ci.yml
is as follows:
before_script:
- export DJANGO_SETTINGS_MODULE= ----
- pip install -r requirements.txt
test:
script:
- R -e 'install.packages(c("raster", "rgdal"))'
- R CMD build . --no-build-vignettes --no-manual
- PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)
- R CMD check "${PKG_FILE_NAME}" --no-build-vignettes --no-manual
- pep8 --show-source --show-pep8 setup.py planex tests
- nosetests
Warning in install.Packages(c("raster", "rgdal")) :
'lib = "/usr/local/lib/R/site-library"' is not writable
Error in install.Packages(c("raster", "rgdal")) :
Unable to install Packages
Execution Halted
ERROR: Build failed: Exit status 1
you have permission to write in this directory?
/usr/local/lib/R/site-library
– Daniel Falbel
drwxrwsr -x 2 root staff 4096 Out5 /usr/local/lib/R/site-Ibary
– Guilherme Lima
@Guilhermelima, it’s the host gitlab or gitlab.org?
– Tomás Barcellos