Skip to content

Installation when "R" is already present #24

Description

@peacocks

A request for the user instructions in README.md

I followed the instructions but had problems because the file ispaq-conda-install.txt installs "R" version 3.6 in the Conda environment, while my computer has version 4.1 installed in /usr/lib64. So the command "run_ispaq.py -I" and the "R CMD INSTALL" commands tried to use the system "R", and to load the system "R" runtime libraries .

I issued commands to set up environment variables to point to the Conda environment copy of "R", i.e.
export R_LIBS=/usr/local/miniforge3/envs/ispaq/lib/R:$R_LIBS
export R_LIBS_SITE=/usr/local/miniforge3/envs/ispaq/lib/R/library:$R_LIBS_SITE

I also issued
export LD_LIBRARY_PATH=/usr/local/miniforge3/envs/ispaq/lib:$LD_LIBRARY_PATH
I am not sure if this was necessary. "ispaq" worked once these commands had been issued.

I presume that there is a Conda command that allows these environment variables to be set up while one is in the "ispaq" environment, and removed when one exits from it, but I haven't found it yet.

I wonder whether omitting the "R" items from ispaq-conda-install.txt and installing them "by hand" in the system "R" library would allow the program to work without needing a copy of "R" in the Conda environment. This might not be possible for users with a system "R" installed in /usr/lib64 if they do not have superuser access, as well as risking the "ispaq" code trying to work with a genuinely incompatible version of "R".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions