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

can't load package in Rstudio #17

Closed
asifzubair opened this issue Jul 30, 2019 · 17 comments
Closed

can't load package in Rstudio #17

asifzubair opened this issue Jul 30, 2019 · 17 comments

Comments

@asifzubair
Copy link

I followed the installation instructions and was able to load immunedeconv from the command line into R. However, I wanted to use the package in Rstudio because I want to explore it in an Rmarkdown.

To do that, I did the following:

(base) azubair@D191200:~/projects$ conda activate immunedeconv
(immunedeconv) azubair@D191200:~/projects/decon$ conda install --override -c grst -c bioconda -c conda-forge/label/cf201901 r-immunedeconv
(immunedeconv) azubair@D191200:~/projects/decon$ rstudio

However, when I load the package in Rstudio, I get the following error:

> library(immunedeconv)
Error: package or namespace load failed for ‘immunedeconv’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/azubair/anaconda3/envs/immunedeconv/lib/R/library/RCurl/libs/RCurl.so':
  /home/azubair/anaconda3/envs/immunedeconv/lib/R/library/RCurl/libs/../../../../libcurl.so.4: undefined symbol: SSLv2_client_method

I think it is having some problems with RCurl.

If it helps, when I start Rstudio, I got the following message:

Error in tools::startDynamicHelp() : internet routines cannot be loaded

It could be a problem with my local installation of RStudio, but I wanted to ask if you folks have used immunedeconv within RStudio and if so what was your workflow.

> devtools::session_info()
─ Session info ────────────────────────────────────────────────────────────
 setting  value                       
 version  R version 3.4.1 (2017-06-30)
 os       Ubuntu 16.04.6 LTS          
 system   x86_64, linux-gnu           
 ui       RStudio                     
 language en_US                       
 collate  en_US.UTF-8                 
 ctype    en_US.UTF-8                 
 tz       SystemV/CST6CDT             
 date     2019-07-30                  
@mlist
Copy link
Collaborator

mlist commented Jul 30, 2019 via email

@asifzubair
Copy link
Author

asifzubair commented Jul 31, 2019

Ah, it does seem to be a problem with RCurl. Inside the conda environment, I can load it at the command line R but NOT in RStudio.

> library(RCurl)
Loading required package: bitops
Error: package or namespace load failed for ‘RCurl’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/azubair/anaconda3/envs/immunedeconv/lib/R/library/RCurl/libs/RCurl.so':
  /home/azubair/anaconda3/envs/immunedeconv/lib/R/library/RCurl/libs/../../../../libcurl.so.4: undefined symbol: SSLv2_client_method

Maybe I should post this either on RCurl or RStudio forum ?

EDIT: Still haven't solved my problem but this issue seems related - rstudio/rstudio#4123

@mlist
Copy link
Collaborator

mlist commented Aug 2, 2019 via email

@grst
Copy link
Collaborator

grst commented Aug 3, 2019 via email

@asifzubair
Copy link
Author

I did try doing a conda install rstudio inside the environment but then it has conflicts with a number of packages that were installed along with immunedeconv already

@grst
Copy link
Collaborator

grst commented Aug 8, 2019

I see. Should be fixed when the package gets accepted to bioconda (#2)

Until then, you'll have to install the package manually to use it with rstudio (see README)

@grst
Copy link
Collaborator

grst commented Aug 8, 2019

Ah, one more thing you could try is to use

conda install --override -c conda-forge/label/cf201901 rstudio

@asifzubair
Copy link
Author

Great, will try to to do that! Thank you.

And thank you for the bioconda heads up, that will be very useful.

@asifzubair
Copy link
Author

Sorry @grst , I don't think the channel specification works:

(immunedeconv) azubair@D191200:~/projects/splattercon$ conda install --override -c conda-forge/label/cf201901 rstudio
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - rstudio

Current channels:

  - https://conda.anaconda.org/conda-forge/label/cf201901/linux-64
  - https://conda.anaconda.org/conda-forge/label/cf201901/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

@grst
Copy link
Collaborator

grst commented Aug 13, 2019 via email

@asifzubair
Copy link
Author

Yes, will do! thanks!

@grst
Copy link
Collaborator

grst commented Aug 24, 2019

Bioconda package is available now.
I also update installation instructions in the readme.

@asifzubair
Copy link
Author

awesome, will check it out asap and report back! thanks!

@asifzubair
Copy link
Author

hi @grst . just a quick question - would it be possible to change the signature matrix used by different methods in this package? I see that in the function signature at least this argument is not exposed. please let me know. thanks!

@grst
Copy link
Collaborator

grst commented Sep 1, 2019

Not atm - See #15.

Did the installation with conda work out for you now?

@asifzubair
Copy link
Author

Yes, the installation worked! But I am still having problems with rstudio. In the end, I just installed using remotes. Hope everything still works! Gonna close this for now.

@grst
Copy link
Collaborator

grst commented Sep 4, 2019

Ok, thanks for testing!
Glad it at least worked out with remotes in the end.

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

3 participants