install SCP problem
1
2
Entering edit mode
2.4 years ago
Andy ▴ 140

Good afternoon,

I meet a problem to install SCP. When I install the required package RcppEigen, I encountered following problem.

Installing RcppEigen ...                      
Traceback (most recent calls last):
16: renv::install("RcppEigen")
15: renv_install_impl(records)
14: renv_install_staged(records)
13: renv_install_default(records)
12: handler(package, renv_install_package(record))
11: renv_install_package(record)
10: withCallingHandlers(renv_install_package_impl(record), error = function(e) writef("FAILED"))
 9: renv_install_package_impl(record)
 8: r_cmd_install(package, path)
 7: r(args, stdout = TRUE, stderr = TRUE)
 6: suppressWarnings(system2(R(), args, ...))
 5: withCallingHandlers(expr, warning = function(w) if (inherits(w, 
        classes)) tryInvokeRestart("muffleWarning"))
 4: system2(R(), args, ...)
 3: .signalSimpleWarning("running command ''/risapps/rhel7/R/4.2.1/lib64/R/bin/R' --vanilla CMD INSTALL --preclean --no-multiarch --with-keep.source -l '~/scp/SCP_env/renv/staging/1' '~/.cache/R/renv/source/repository/RcppEigen/RcppEigen_0.3.3.9.3.tar.gz' 2>&1' had status 1", 
        base::quote(system2(R(), args, ...)))
 2: withRestarts({
        .Internal(.signalCondition(simpleWarning(msg, call), msg, 
            call))
        .Internal(.dfltWarn(msg, call))
    }, muffleWarning = function() NULL)
 1: makeRestartList(...)
Terminated

I am wondering whoever used SCP before could offer some suggestion for me.

Best Andy

SCP • 1.4k views
ADD COMMENT
1
Entering edit mode

Please use options(renv.verbose = TRUE) or use install.packages() so one sees the compilation log. Above message is not helpful for debugging.

ADD REPLY
0
Entering edit mode

The system has been.

ADD REPLY
0
Entering edit mode
1 day ago

If anyone else lands here...

Hey Andy,

The traceback that you provide is not showing the actual error that is causing the installation to fail. The 'status 1' is just a general failure code. The real error should be in the console output just before the traceback begins.

Can you re-run the renv::install("RcppEigen") and capture / paste the full output here? - it will likely reveal a compilation error of some kind.

In the meantime, RcppEigen is a C++-based package and requires compilation from source when using renv (which is what is happening here). On RHEL7 systems like yours (based on the path /risapps/rhel7/), this often fails due to missing system-level development tools. Common culprits are the absence of a C++ compiler (g++) or related libraries.

Try the following:

  1. Exit R and ensure you have the necessary system packages installed. If you have sudo access (or can ask your sysadmin), run:

    sudo yum install gcc gcc-c++ make eigen3-devel
    

    The eigen3-devel is particularly important for RcppEigen, as it provides the Eigen headers that the package relies on during compilation.

  2. If you're on an HPC cluster (which this looks like), you may need to load modules first, e.g.:

    module load gcc
    

    Check with module avail to see what's available.

  3. Back in R, try installing RcppEigen outside of renv first to isolate the issue:

    install.packages("RcppEigen", type = "source")
    

    If this succeeds, then the problem is specific to renv's staging process. You can then try renv::install("RcppEigen") again.

  4. If it still fails, check for a log file in ~/.cache/R/renv/ or the staging directory mentioned in your traceback (~/scp/SCP_env/renv/staging/1). There may be more details there.

SCP itself is a great package for single-cell work, but its dependencies like RcppEigen can be tricky on older R versions (4.2.1 is from 2022). If possible, consider upgrading R to a newer version, as binaries may be available and avoid source compilation.

Let me know how you get on (with the full error, if it persists).

Kevin

ADD COMMENT

Login before adding your answer.

Traffic: 3918 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6