Issue installing and running ivis R package in RStudio
See original GitHub issueHello,
For JOSS review.
The installation instructions fail when run in the RStudio environment:
> devtools::install_github("beringresearch/ivis/R-package", force=TRUE)
Downloading GitHub repo beringresearch/ivis@master
✔ checking for file ‘/private/var/folders/cp/8rn2cs_x79zcbp_yb75ychg80000gq/T/Rtmpud6pnU/remotesbe4d59017fdb/beringresearch-ivis-bbccdb7/R-package/DESCRIPTION’ ...
─ preparing ‘ivis’:
✔ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘ivis_1.1.3.tar.gz’
* installing *source* package ‘ivis’ ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘ivis’:
.onLoad failed in loadNamespace() for 'ivis', details:
call: path.expand(path)
error: invalid 'path' argument
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/ivis’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/ivis’
Error: Failed to install 'ivis' from GitHub:
(converted from warning) installation of package ‘/var/folders/cp/8rn2cs_x79zcbp_yb75ychg80000gq/T//Rtmpud6pnU/filebe4d71713083/ivis_1.1.3.tar.gz’ had non-zero exit status
However, it does work fine when run in the console (Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64):
> devtools::install_github("beringresearch/ivis/R-package", force=TRUE)
Downloading GitHub repo beringresearch/ivis@master
checking for file ‘/private/var/folders/cp/8rn2cs_x79zcbp_yb75ychg80000gq/T/Rtmpvj2CT3/remotesc3827327cfb8/beringresearch-ivis-bbccdb7/R-package/DESCRIPTION’✔ checking for file ‘/private/var/folders/cp/8rn2cs_x79zcbp_yb75ychg80000gq/T/Rtmpvj2CT3/remotesc3827327cfb8/beringresearch-ivis-bbccdb7/R-package/DESCRIPTION’
─ preparing ‘ivis’:
✔ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘ivis_1.1.3.tar.gz’
* installing *source* package ‘ivis’ ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (ivis)
Moreover, the ivis
package (installed from the terminal) can be loaded from an R console in a terminal, but throws the following error when loaded in RStudio
> library(ivis)
Error: package or namespace load failed for ‘ivis’:
.onLoad failed in loadNamespace() for 'ivis', details:
call: path.expand(path)
error: invalid 'path' argument
This is most likely due to conda
not being on the PATH
in RStudio:
# RStudio
> system("echo $PATH")
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/ncbi/igblast/bin:/Library/TeX/texbin:/opt/X11/bin:/opt/local/bin
# Console
> system("echo $PATH")
/Users/kevin/miniconda3/bin:/Users/kevin/miniconda3/condabin:/usr/local/opt/imagemagick@6/bin:/Users/kevin/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/ncbi/igblast/bin:/Library/TeX/texbin:/opt/X11/bin
Is there a recommended way to set up an environment to run ivis
in RStudio, or are users only expected to run it from a terminal R console?
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
R Studio Package Installation Not Recognized - General
I've installed two packages, "lmtest" and "sandwich". When I try to run a package, R says that there is no package with the...
Read more >Issues installing packages - RStudio IDE
Hey everyone, I'm an MPH student new to R. I've had repeated issues using packages that I have already installed and run (with...
Read more >Trouble with installing packages - General - RStudio Community
I have been trying to fix this for the past week. I cannot seem to be able to install ggplot 2 package. This...
Read more >Can't load packages in R or R Studio - RStudio Community
Error Information: Description of issue - I am R Studio on my desktop and am unable to install the "tidyverse" package. Every time...
Read more >Rstudio can´t install any package. I´m a beginner. How to fix?
I am taking a Data Science course at Coursera using R. I installed version 4.0.2 of R for Windows 10 (x64), then R...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi - thanks for trying out
ivis
and testing it out in RStudio. It does sound like a path issue. I haven’t worked much with RStudio recently, but it may be that RStudio doesn’t inherit system $PATH: https://stackoverflow.com/questions/31121645/rstudio-shows-a-different-path-variableI’m thinking that a potential solution would be to get rid of Conda manager altogether and simply install R wrapper through virtualenv + pip. I’ll test this out over the next few days and revert here.
Thanks again!
Addressed in #30