When I try to install R packages using shell
, the following error occurs:
My code for the gitlab-ci.yml
file 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