Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install package / NAMESPACE file required #9

Open
MatthiasHinz opened this issue Feb 14, 2017 · 1 comment · May be fixed by #11
Open

Cannot install package / NAMESPACE file required #9

MatthiasHinz opened this issue Feb 14, 2017 · 1 comment · May be fixed by #11

Comments

@MatthiasHinz
Copy link

Hi,
i am not able to install rgdal2 according to the Readme.md. The installation fails with the error

ERROR: a 'NAMESPACE' file is required

Also, there seems to be a problem with roxygen2:

First time using roxygen2. Upgrading automatically...
Updating roxygen version in /tmp/RtmpmOP7q5/devtools4de8213c4e7d/thk686-rgdal2-451b53c/DESCRIPTION
Loading required package: 
Failed with error:  'invalid package name'

The full sequence of commands and messages are attached below. I got similar results also when I tried the same with the Docker image rocker/geospatial.

Can you please help? Thanks.

~$ R --vanilla

R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R ist freie Software und kommt OHNE JEGLICHE GARANTIE.
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.
Tippen Sie 'license()' or 'licence()' für Details dazu.

R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.
Tippen Sie 'contributors()' für mehr Information und 'citation()',
um zu erfahren, wie R oder R packages in Publikationen zitiert werden können.

Tippen Sie 'demo()' für einige Demos, 'help()' für on-line Hilfe, oder
'help.start()' für eine HTML Browserschnittstelle zur Hilfe.
Tippen Sie 'q()', um R zu verlassen.

> if (packageVersion("devtools") < 1.6) {
+ install.packages("devtools")
+ }
> devtools::install_github("thk686/rgdal2")
Downloading GitHub repo thk686/rgdal2@master
from URL https://api.github.com/repos/thk686/rgdal2/zipball/master
Installing rgdal2
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet  \
  CMD INSTALL '/tmp/RtmpmOP7q5/devtools4de8213c4e7d/thk686-rgdal2-451b53c'  \
  --library='/home/matthiashinz/R/x86_64-pc-linux-gnu-library/3.3'  \
  --install-tests 

* installing *source* package ‘rgdal2’ ...
First time using roxygen2. Upgrading automatically...
Updating roxygen version in /tmp/RtmpmOP7q5/devtools4de8213c4e7d/thk686-rgdal2-451b53c/DESCRIPTION
Loading required package: 
Failed with error:  'invalid package name'
Loading required package: Rcpp
Loading required package: grid
Loading required package: foreach
Loading required package: iterators
Loading required package: RColorBrewer
Loading required package: roxygen_devtest
Error in .requirePackage(package) : 
  unable to find required package 'roxygen_devtest'
Calls: <Anonymous> ... makeClassRepresentation -> makeExtends -> .requirePackage
In addition: Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called 'roxygen_devtest'
Execution halted
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of int... 4
checking size of double... 8
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating src/pkg_config.h
ERROR: a 'NAMESPACE' file is required
* removing ‘/home/matthiashinz/R/x86_64-pc-linux-gnu-library/3.3/rgdal2’
Fehler: Command failed (1)
> sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.1 LTS

locale:
 [1] LC_CTYPE=de_DE.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=de_DE.UTF-8        LC_COLLATE=de_DE.UTF-8    
 [5] LC_MONETARY=de_DE.UTF-8    LC_MESSAGES=de_DE.UTF-8   
 [7] LC_PAPER=de_DE.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] httr_1.2.1      R6_2.2.0        tools_3.3.2     withr_1.0.2    
[5] curl_2.3        memoise_1.0.0   git2r_0.18.0    digest_0.6.12  
[9] devtools_1.12.0
> 
@bleutner
Copy link

Something has changed in roxygen2 that broke it.
With an older version of roxygen2 (v. 5.0.1) the install was succesful for me.

@Nowosad Nowosad linked a pull request Feb 15, 2018 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants