How can I update R from RStudio? [duplicate] - r

This question already has answers here:
Update R using RStudio
(10 answers)
Closed 2 years ago.
I need to update R manually, in RStudio. Then I gone to: Tools -> Global options -> General. But I didn't see guidelines for updating.

Just download a new R version from CRAN and install it on your system.
If you are on windows, check the installr package : installr

I don't think that you can update R via point and click from RStudio. Either you download the new version manually from CRAN (it comes with an installer so you don't need to do anything by yourself) or you use the installR package on Windows or the updateR package on Mac: https://github.com/AndreaCirilloAC/updateR

Related

Looking for R version 3.5.2 for Mac [duplicate]

This question already has answers here:
Downgrade R version (no issues with Bioconductor installation)
(2 answers)
Closed 3 years ago.
I updated my version of R not realizing that several packages are not compatible. I'd like to go back to version 3.5.2 (for Mac), but I can't find it anywhere. Anyone know where to find old versions?
I was able to get version 3.5.2 by modifying the link to download the present version (https://cran.r-project.org/bin/macosx/R-3.6.1.pkg), with the version number I'm interested in (https://cran.r-project.org/bin/macosx/R-3.5.1.pkg). This started an automatic download.
You can find and download all released versions of R for Mac here

binary packages not available after update R to 3.1.2 [duplicate]

This question already has answers here:
How should I deal with "package 'xxx' is not available (for R version x.y.z)" warning?
(18 answers)
Closed 8 years ago.
I have just updated R to version 3.1.2, and many packages seem not yet available, such as RmySQL.
What can I do? Uninstall the latest version of R and go back to version 3.0? Or are there other ways?
The problem is especially related to Apple, although for some packages (eg RMySQL) this problem can occur in Windows as well.
On Apple, you can try to install from source:
install.packages('plotGoogleMaps', type='source')
Note that with RMySQL you also have to make sure your environment variables are set correctly. You find more info on the installation procedure on their CRAN page.
On Windows, you need to install Rtools before you can install from source:
http://cran.r-project.org/bin/windows/Rtools/
After you've done that, you can use the same option as above.
Be warned though that building from source might require a manual configuration of your system. This is the case for both rgeos and RMySQL. Information on these procedures can be found on the CRAN page of either package:
eg for rgeos you need to preinstall GEOS as specified in the system requirements:
http://cran.r-project.org/web/packages/rgeos/index.html
For RMySQL you need to set up yor environment variables, as specified here:
http://cran.r-project.org/web/packages/RMySQL/INSTALL
EDIT: Building on MAC
If you want to build binary packages on Mac machines, you need to take into account that you might need extra tools, especially when these packages contain compiled code. This is explained in more detail in the R FAQ for Mac and the Administration and Installation manual:
http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html#Installation-of-source-packages
http://cran.r-project.org/doc/manuals/r-release/R-admin.html#OS-X
Alternatively, you might want to check the R for MAC's Developer page at http://r.research.att.com/ This one contains more information on the toolchain you need.

Error: package ‘dmGWAS’ was built before R 3.0.0: please re-install it [duplicate]

This question already has answers here:
How do I install an R package from the source tarball on windows?
(6 answers)
Closed 1 year ago.
I downloaded the Windows binary file dmGWAS_2.3.zip clickHere and try to install it by clicking Packages/install package from local zip file. After install, when I try to load 'dmGWAS' I got the error 'Error: package ‘dmGWAS’ was built before R 3.0.0: please re-install it'. I am using win 7 and R 3.1.0.
I searched similar questions but find no solution.
try:
> update.packages(checkBuilt = TRUE, ask = FALSE)
The authors release the newest version dmGWAS_3.0, which is compatible with dmGWAS_2.3. You can use the new version at http://bioinfo.mc.vanderbilt.edu/dmGWAS/

How do I install an older R package? [duplicate]

This question already has answers here:
Installing older version of R package
(8 answers)
Closed 7 years ago.
I am trying to install the R package bigrf using the following command:
install.packages('bigrf')
However, I receive this error:
Warning in install.packages: package 'bigrf' is not available (for R version 3.0.2).
I understand that the package was not built for R version 3.0.2, but is it not possible for me to install it regardless with the understanding that it might not have complete forward compatibility?
The safest thing to do would be to download the last version that the package was built for (link) and run the code on that version.
The easiest way to rebuild a package from source is using R-Studio.
They have a good walkthrough. You will need to use the devtools package as well.

Can I install R from within RStudio?

R version 3 is released as announced at R bloggers. I am using RStudio and would like to know if it is possible to install the new version from within RStudio. Any precautions for may installed packages, functions and data?
RStudio has built-in support for updating packages, but not for updating R itself.
If you're using Windows, the installr package can be used to update R (as was mentioned on R-bloggers). Otherwise your update will need to be more manual.

Resources