Question: Why I can not update R?
0
gravatar for Za
9 weeks ago by
Za120
Za120 wrote:

Hi,

I am trying to update R in mac; I downloaded r-3.5.1.pkg, I installed that and restarted R but again the version is

> version
               _                           
platform       x86_64-apple-darwin13.4.0   
arch           x86_64                      
os             darwin13.4.0                
system         x86_64, darwin13.4.0        
status                                     
major          3                           
minor          1.2                         
year           2014                        
month          10                          
day            31                          
svn rev        66913                       
language       R                           
version.string R version 3.1.2 (2014-10-31)
nickname       Pumpkin Helmet              
>

I can not installed anything because saying

ERROR: this R is version 3.1.2, package 'updateR' requires R >= 3.2.3

Could you please help me to get why R can not be updated?

Thanks a lot in advance

R software error • 314 views
ADD COMMENTlink modified 9 weeks ago • written 9 weeks ago by Za120
1

I would recommend you try to install Microsoft R:

https://mran.blob.core.windows.net/install/mro/3.5.1/microsoft-r-open-3.5.1.pkg

ADD REPLYlink written 9 weeks ago by Raony Guimarães860
1

Thank you, Microsoft R worked

I was updating in RStudio directly from .pkg

ADD REPLYlink written 9 weeks ago by Za120

Perhaps the updated R went someplace other than your $PATH, which still contains old R. Find the new R and then add that location to your $PATH at beginning.

ADD REPLYlink modified 9 weeks ago • written 9 weeks ago by genomax59k

Sorry I just know where the downloaded R-3.5.1.pkg is. How I can add this to path?

ADD REPLYlink written 9 weeks ago by Za120

You likely have more than one R versions in /Library/Frameworks/R.framework/3.*. Do a find with find /Library/Frameworks/R.framework -name "R" -print and then change the symlink in /usr/local/bin/ to point to new R.

ADD REPLYlink modified 9 weeks ago • written 9 weeks ago by genomax59k

Thank you in

setwd("/Volumes/Macintosh HD 1/Users//Library/Frameworks/R.framework/Versions/3.5/Resources/bin")
Error in setwd("/Volumes/Macintosh HD 1/Users//Library/Frameworks/R.framework/Versions/3.5/Resources/bin") : 
  cannot change working directory
>

In R.framework/Versions I have R 2.15, 3.1, 3.2, 3.3, 3.4 and 3.5

I tried to set work directory to R 3.5 bin file but gives error

ADD REPLYlink modified 9 weeks ago • written 9 weeks ago by Za120

Sorry but I dont understand what should I do

> ls -l Users//Library/Frameworks/R.framework/Versions/3.5/Resources/bin
Error: unexpected symbol in "ls -l Users"
> 
>
ADD REPLYlink written 9 weeks ago by Za120

Do the upgrade outside R. Directly from the .pkg file you downloaded from CRAN server.

ADD REPLYlink written 9 weeks ago by genomax59k

Are you trying to update R from within R or RStudio itself?

ADD REPLYlink written 9 weeks ago by jrj.healey9.2k
2
gravatar for Za
9 weeks ago by
Za120
Za120 wrote:

https://mran.blob.core.windows.net/install/mro/3.5.1/microsoft-r-open-3.5.1.pkg

ADD COMMENTlink written 9 weeks ago by Za120

Could you provide details re why this solves the original problem but the genuine R release doesn't.

ADD REPLYlink written 9 weeks ago by russhh4.1k

Sorry, I don't know, @Raony Guimarães suggested this solution. But my problem is R does not recognise any package

ADD REPLYlink written 9 weeks ago by Za120

Microsft R is just packaged differently than traditional R and it probably adds itself to the $PATH correctly.

You will probably need to reinstall your packages with install.packages but you will get a much better multithread performance.

ADD REPLYlink written 9 weeks ago by Raony Guimarães860

Sorry, whatever I am trying I can not install anything, for all says that; Help me please

Warning in install.packages :
  installation of package ‘memoise’ had non-zero exit status

Restarting R session...

Microsoft R Open 3.5.1
The enhanced R distribution from Microsoft
Microsoft packages Copyright (C) 2018 Microsoft Corporation

Multithreaded BLAS/LAPACK libraries detected. Using 2 cores for math algorithms.

Default CRAN mirror snapshot taken on 2018-08-01.
See: https://mran.microsoft.com/.

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
ADD REPLYlink modified 9 weeks ago • written 9 weeks ago by Za120

The problem was I needed to install XQuartz

ADD REPLYlink written 9 weeks ago by Za120
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1746 users visited in the last hour