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

Rfast package install error #1837

Closed
AHuffmyer opened this issue Mar 6, 2024 · 0 comments
Closed

Rfast package install error #1837

AHuffmyer opened this issue Mar 6, 2024 · 0 comments

Comments

@AHuffmyer
Copy link
Contributor

I was trying to install a package that required Rfast package as a dependency. I got an error that looked like this:

── R CMD build ────────────────────────────────────────────────────────────
✔  checking for file ‘/tmp/Rtmp6iAUnp/remotes5c571d31599d/RfastOfficial-Rfast-00f3d0f/DESCRIPTION’ ...
─  preparing ‘Rfast’:
✔  checking DESCRIPTION meta-information ...
─  cleaning src
─  installing the package to process help pages
         -----------------------------------
─  installing *source* package ‘Rfast’ ...
   ** using staged installation
   ** libs
   using C compiler: ‘gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0’
   using C++ compiler: ‘g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0’
   using C++17
   g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/home/vincent/R/x86_64-pc-linux-gnu-brary/4.3/Rcpp/include' -I'/home/vincent/R/x86_64-pc-linux-gnu-library/4.3/RcppArmadillo/include' -/home/vincent/R/x86_64-pc-linux-gnu-library/4.3/RcppParallel/include'    -fopenmp -fpic  -g -O2 -fdebug-prefix-p=/build/r-base-E8saoI/r-base-4.3.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -FORTIFY_SOURCE=2  -Wall -pedantic -fdiagnostics-color=always -c Coeff.cpp -o Coeff.o
   In file included from ../inst/include/Rfast/templates.h:10:0
                    from ../inst/include/Rfast/matrix.hpp:14
                    from ../inst/include/Rfast.h:5
                    from mn.h:4
                    from Coeff.cpp:4
   ../inst/include/Rfast/parallel.h:20:10:fatal error: tion: No such file or directory
    #include <execution>
             ^~~~~~~~~~~
   compilation terminated.
   /usr/lib/R/etc/Makeconf:200: recipe for target 'Coeff.o' failed
   make: *** [Coeff.o] Error 1
   ERROR: compilation failed for package ‘Rfast’
─  removing ‘/tmp/RtmpHL0acr/Rinst6fb91edd9314/Rfast’
         -----------------------------------
   ERROR: package installation failed
Error: Failed to install 'Rfast' from GitHub:
  ! System command 'R' failed

I got around this by forcing an install of an older version with:

remotes::install_version("Rfast", version = "2.0.8")

I was then able to install.

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

1 participant