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

failed to install #29

Closed
kongdd opened this issue Jun 26, 2023 · 2 comments
Closed

failed to install #29

kongdd opened this issue Jun 26, 2023 · 2 comments

Comments

@kongdd
Copy link

kongdd commented Jun 26, 2023

remotes::install_github("egpivo/SpatPCA")

Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo egpivo/SpatPCA@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

1: All                          
2: CRAN packages only           
3: None                         
4: cli   (3.6.0 -> 3.6.1) [CRAN]
5: vctrs (0.6.2 -> 0.6.3) [CRAN]

Enter one or more numbers, or an empty line to skip updates: 
── R CMD build ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔  checking for file 'C:\Users\hydro\AppData\Local\Temp\RtmpSGxkUE\remotes11582e472bc0\egpivo-SpatPCA-c2bf66f/DESCRIPTION' ... 
─  preparing 'SpatPCA':
✔  checking DESCRIPTION meta-information ... 
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
   Omitted 'LazyData' from DESCRIPTION
─  building 'SpatPCA_1.3.3.8.tar.gz'
   
Installing package into ‘D:/Documents/R/win-library/4.2’
(as ‘lib’ is unspecified)
NULL
* installing *source* package 'SpatPCA' ...
** using staged installation
** libs
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-42~1.3/include" -DNDEBUG -I../inst/include -DARMA_DONT_PRINT_OPENMP_WARNING=1 -I'D:/Documents/R/win-library/4.2/Rcpp/include' -I'D:/Documents/R/win-library/4.2/RcppArmadillo/include' -I'D:/Documents/R/win-library/4.2/RcppParallel/include'   -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include"  -DRCPP_PARALLEL_USE_TBB=1 -DARMA_64BIT_WORD=1   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c RcppExports.cpp -o RcppExports.o
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-42~1.3/include" -DNDEBUG -I../inst/include -DARMA_DONT_PRINT_OPENMP_WARNING=1 -I'D:/Documents/R/win-library/4.2/Rcpp/include' -I'D:/Documents/R/win-library/4.2/RcppArmadillo/include' -I'D:/Documents/R/win-library/4.2/RcppParallel/include'   -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include"  -DRCPP_PARALLEL_USE_TBB=1 -DARMA_64BIT_WORD=1   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c RcppSpatPCA.cpp -o RcppSpatPCA.o
RcppSpatPCA.cpp: In member function 'virtual void thinPlateSpline::operator()(std::size_t, std::size_t)':
RcppSpatPCA.cpp:25:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::size_t' {aka 'long long unsigned int'} [-Wsign-compare]
   25 |         if(j > i) {
      |            ~~^~~
RcppSpatPCA.cpp: In member function 'virtual void spatpcaCVPhi3::operator()(std::size_t, std::size_t)':
RcppSpatPCA.cpp:501:26: warning: comparison of integer expressions of different signedness: 'int' and 'const uword' {aka 'const long long unsigned int'} [-Wsign-compare]
  501 |       for(int gj = 0; gj < gamma.n_elem; gj++) {
      |                       ~~~^~~~~~~~~~~~~~
gcc  -I"C:/PROGRA~1/R/R-42~1.3/include" -DNDEBUG -I../inst/include -DARMA_DONT_PRINT_OPENMP_WARNING=1 -I'D:/Documents/R/win-library/4.2/Rcpp/include' -I'D:/Documents/R/win-library/4.2/RcppArmadillo/include' -I'D:/Documents/R/win-library/4.2/RcppParallel/include'   -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include"     -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign  -c registerDynamicSymbol.c -o registerDynamicSymbol.o
 -LD:/Documents/R/win-library/4.2/RcppParallel/lib/x64 -ltbb -ltbbmalloc -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib -LC:/PROGRA~1/R/R-42~1.3/bin/x64 -lR
: Invalid argumentLL
no DLL was created
ERROR: compilation failed for package 'SpatPCA'
* removing 'D:/Documents/R/win-library/4.2/SpatPCA'
Warning message:
In i.p(...) :
  installation of package ‘C:/Users/hydro/AppData/Local/Temp/RtmpSGxkUE/file11588a726fe/SpatPCA_1.3.3.8.tar.gz’ had non-zero exit status

@egpivo
Copy link
Owner

egpivo commented Nov 10, 2023

Hi @kongdd ,

Sorry for the late reply. Can you provide your session info by typing sessionInfo()?

@kongdd
Copy link
Author

kongdd commented Nov 10, 2023

Sorry. I tried again with R 4.3.1 on the win11. It works.
Thanks for your awesome package.

@kongdd kongdd closed this as completed Nov 10, 2023
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

No branches or pull requests

2 participants