RfastOfficial / Rfast

A collection of Rfast 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.
145 stars 19 forks source link

I have installed Rfast via conda, but I can't load it in R #117

Open jingydz opened 4 weeks ago

jingydz commented 4 weeks ago

I encountered the error "WARNING:rpy2.rinterface_lib.callbacks:R[write to console]: HINT: For large R or large XtX, consider installing the Rfast package for better performance.", so I need to install the Rfast package for faster computation.

I have installed Rfast via conda, but I can't load it in R.

$ conda install -c conda-forge r-rfast

Retrieving notices: ...working... done Collecting package metadata (current_repodata.json): done Solving environment: done

Package Plan

environment location: /Parastor300s_G30S/zhangjj/software/yes

added / updated specs:

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
ca-certificates-2024.8.30  |       hbcca054_0         155 KB  conda-forge
certifi-2024.8.30          |     pyhd8ed1ab_0         160 KB  conda-forge
libcblas-3.9.0             |16_linux64_openblas          13 KB  conda-forge
r-rcpp-1.0.13              |    r43h0d4f4ea_0         1.9 MB  conda-forge
r-rcpparmadillo-0.12.6.4.0 |    r43h884c59f_0         868 KB  defaults
r-rcppgsl-0.3.13           |    r43h40eab2e_2         216 KB  conda-forge
r-rcppparallel-5.1.9       |    r43h93ab643_0         531 KB  conda-forge
r-rcppziggurat-0.1.6       |    r43h40eab2e_4         419 KB  conda-forge
r-rfast-2.1.0              |    r43hb79369c_1         2.4 MB  conda-forge
------------------------------------------------------------
                                       Total:         6.7 MB

The following NEW packages will be INSTALLED:

gsl conda-forge/linux-64::gsl-2.7-he838d99_0 libblas conda-forge/linux-64::libblas-3.9.0-16_linux64_openblas libcblas conda-forge/linux-64::libcblas-3.9.0-16_linux64_openblas liblapack conda-forge/linux-64::liblapack-3.9.0-16_linux64_openblas r-rcpp conda-forge/linux-64::r-rcpp-1.0.13-r43h0d4f4ea_0 r-rcpparmadillo anaconda/pkgs/r/linux-64::r-rcpparmadillo-0.12.6.4.0-r43h884c59f_0 r-rcppgsl conda-forge/linux-64::r-rcppgsl-0.3.13-r43h40eab2e_2 r-rcppparallel conda-forge/linux-64::r-rcppparallel-5.1.9-r43h93ab643_0 r-rcppziggurat conda-forge/linux-64::r-rcppziggurat-0.1.6-r43h40eab2e_4 r-rfast conda-forge/linux-64::r-rfast-2.1.0-r43hb79369c_1

The following packages will be UPDATED:

ca-certificates anaconda/pkgs/main::ca-certificates-2~ --> conda-forge::ca-certificates-2024.8.30-hbcca054_0 certifi anaconda/pkgs/main/linux-64::certifi-~ --> conda-forge/noarch::certifi-2024.8.30-pyhd8ed1ab_0

Proceed ([y]/n)? y

Downloading and Extracting Packages

Preparing transaction: done Verifying transaction: done Executing transaction: done

$ R

library(Rfast) Error in library(Rfast) : 不存在叫‘Rfast’这个名字的程辑包

ManosPapadakis95 commented 4 days ago

Personally i don't know how to do it. I hope someone else can help.