Open linako111 opened 6 years ago
I'm encountering the same issue, kind of. First, I can't start the portable R from the home folder of the repository.
~/t/electron-quick-start (master|✚2…) $ ./R-Portable-Mac/R
/Users/gregmacfarlane/tf/electron-quick-start
*** R_HOME_DIR ***
/Users/gregmacfarlane/tf/electron-quick-start
./R-Portable-Mac/R: line 258: /Users/gregmacfarlane/tf/electron-quick-start/etc/ldpaths: No such file or directory
~/t/electron-quick-start (master|✚2…) $ ./R-Portable-Mac/bin/R
/Users/gregmacfarlane/tf/electron-quick-start
*** R_HOME_DIR ***
/Users/gregmacfarlane/tf/electron-quick-start
./R-Portable-Mac/bin/R: line 258: /Users/gregmacfarlane/tf/electron-quick-start/etc/ldpaths: No such file or directory
When I navigate down to the executable, it seems to load my global .libPaths()
~/t/electron-quick-start (master|✚2…) $ cd R-Portable-Mac/bin/
~/t/e/R/bin (master|✚2) $ R
R version 3.5.1 (2018-07-02) -- "Feather Spray"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> .libPaths()
[1] "/Library/Frameworks/R.framework/Versions/3.5/Resources/library"
>
.libPaths()
[1] "/Library/Frameworks/R.framework/Versions/3.5/Resources/library"
install.packages("leaflet", lib = "/Users/gregmacfarlane/tf/electron-quick-start/R-Portable-Mac/library/")
## --- Please select a CRAN mirror for use in this session ---
##trying URL 'https://cran.revolutionanalytics.com/bin/macosx/el-capitan/contrib/3.5/leaflet_2.0.2.tgz'
##Content type 'application/octet-stream' length 2333320 bytes (2.2 MB)
##==================================================
##downloaded 2.2 MB
##The downloaded binary packages are in
## /var/folders/mb/kgp49f1d35146dv6n8thrsgw0000gn/T//RtmppcsuSc/downloaded_packages
## Warning message:
## In doTryCatch(return(expr), name, parentenv, handler) :
## unable to load shared object '/Library/Frameworks/R.framework/Resources/modules//R_X11.so':
## dlopen(/Library/Frameworks/R.framework/Resources/modules//R_X11.so, 6): Library not loaded: /opt/X11/lib/libSM.6.dylib
## Referenced from: /Library/Frameworks/R.framework/Resources/modules//R_X11.so
## Reason: image not found
But in general, the portable R seems to be picking up my local R installation.
I had a similar issue at first but solved it by adding this at the start of my script:
if(!require('pacman'))install.packages('pacman', repos = 'https://cran.ma.imperial.ac.uk/')
pacman::p_load(shiny,shinydashboard,tidyverse)
Make sure to define the repos accordingly.
Hello! I'm trying to install new libraries using your video and presentations. I'm on mac. I'm not sure how to get "within electron" area. I was trying to go to the R-Portable-Mac directory, tried to run R from there and also from the R-Portable-Mac/bin directory. New library installs ok, but when running my program, I first notice that R version is not the same as in R-Portable-Mac and then it says that package is not found...