RfastOfficial / Rfast2

A collection of Rfast2 functions for data analysis. Note 1: The vast majority of the functions accept matrices only, not data.frames. Note 2: Do not have matrices or vectors with have missing data (i.e NAs). We do no check about them and C++ internally transforms them into zeros (0), so you may get wrong results. Note 3: In general, make sure you give the correct input, in order to get the correct output. We do no checks and this is one of the many reasons we are fast.
38 stars 4 forks source link

Installing from cran #24

Closed Patrikios closed 1 year ago

Patrikios commented 1 year ago

I am on Debian 10:

PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

and having problem to install Rfast2 from cran:

install.packages("Rfast2")
* installing *source* package ‘Rfast2’ ...
** Paket ‘Rfast2’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
** libs
using C compiler: ‘gcc (Debian 8.3.0-6) 8.3.0’
using C++ compiler: ‘g++ (Debian 8.3.0-6) 8.3.0’
using C++17
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/RcppArmadillo/include' -I'/usr/lib/R/site-library/RcppParallel/include'    -fopenmp -fpic  -g -O2 -fdebug-prefix-map=/home/jranke/git/r-backports/buster/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c Eval.cpp -o Eval.o
In file included from ../inst/include/Rfast2/templates.h:10,
                 from Eval.cpp:7:
../inst/include/Rfast2/parallel.h:20:10: fatal error: execution: Datei oder Verzeichnis nicht gefunden
 #include <execution>
          ^~~~~~~~~~~
compilation terminated.
make: *** [/usr/lib/R/etc/Makeconf:200: Eval.o] Fehler 1
ERROR: compilation failed for package ‘Rfast2’
* removing ‘/usr/lib/R/site-library/Rfast2’
* restoring previous ‘/usr/lib/R/site-library/Rfast2’

Die heruntergeladenen Quellpakete sind in 
        ‘/tmp/RtmpuOjzts/downloaded_packages’
Warnmeldung:
In install.packages("Rfast2") :
  Installation des Pakets ‘Rfast2’ hatte Exit-Status ungleich 0

I got the dependencies in place:

> sessionInfo()
R version 4.3.1 (2023-06-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 10 (buster)

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3 
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.3.5.so;  LAPACK version 3.8.0

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

time zone: Europe/Berlin
tzcode source: system (glibc)

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

other attached packages:
[1] Rfast_2.0.8              RcppZiggurat_0.1.6       RcppParallel_5.1.7       Rcpp_1.0.11              RcppArmadillo_0.12.6.1.0 RANN_2.6.1              

loaded via a namespace (and not attached):
[1] compiler_4.3.1 parallel_4.3.1 tools_4.3.1   

Installing from github leads to the same issue.

ManosPapadakis95 commented 1 year ago

This have been fixed.