Devtools package not found in R-3.0.1 [duplicate] - r

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 R of version 3.0.1 and I have to install Shiny Incubator for that prerequisite is devtools. But i am not able to install both of them as they are not available in given R versions.

"Not available", through install.packages, doesn't actually mean that they're not available - merely that the latest released version isn't compatible with your R version. So, one option is to upgrade, as MrFlick notes - but if you don't have control over your machine (it's remote, say), or you can't upgrade, an alternative is to look in the archive of package versions, and download them from most recent to oldest until you find the one that is compatible.
As an example, let's take devtools. As you can see from the "Depends" field, it needs >= R 3.0.2 - damn! But the archive, containing the old releases, probably has one that's compatible with 3.0.1. Unfortunately the archive doesn't contain compatibility notes, but it does contain dates of release - and we can be fairly sure that versions released prior to R 3.0.2's release won't be designed to work with 3.0.2.
3.0.2 was released in September 2013, and devtools 1.3.0 was released in July. Download it and see if it works. Obviously this may cause problems such as missing functionality that was released in later versions of devtools, but if you can't upgrade, it's better than not having it.

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

Why don't some R packages change version numbers in new releases

If you look at the grf package here, you will notice that it has three versions:
It seems that r-devel is the developing version, r-release is the released version and r-olderel is the older version. However, what is weird is that they share the exact same version number 0.10.2. Why don't they change the version number if the versions are different?
Because it's the same version. What that is telling you is that for grf which version is the most up to date if you're using r-devel, or r-release, or r-oldrel. In some cases the versions can be different. For instance if a package just updated and now requires the latest and greatest version of R then the version that shows up in r-oldrel will reflect that those running the previous release (i.e. r-oldrel) will need to use the previous version of the package since they won't be able to install the newest version since it requires the newest version of R.
So in short - those aren't codenames for the version of the package you're looking at. They're referring the version of R.

R packages built under r-devel version?

I was loading AIMS package and got a warning:
package ‘AIMS’ was built under R version 3.2.0
I thought R-3.1.2 ("Pumpkin Helmet") was the latest release so I checked on CRAN and couldn't see anything about a R-3.2.0.
Before calling it a typo, I googled the "problem" with different keywords and ended on this page from r-project site mentioning two R versions running, a R-release (R-3.1.2) and a "R-devel, to be R-3.2.0".
Googling "r_devel" confirmed what I was guessing, that this is the current development version.
I'm a bit surprised that packages can be built under the development version and I have a twofold question:
- How can a package already be built under a "to be released" R version and is it "safe"?
- Given that the development version is not released yet, how could I use the package with the R version it was built under? (Having a previous R version doesn't prevent me from using the package but I'm not sure I feel comfortable about the warning...)
Or maybe it was really just a typo?...

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.

ggpolt2 not supported in new R

I have updated my R to the latest version, that is R version 3.1.0 beta (2014-03-28 r65330). My problems is that ggplot2 does not have a version that supports this R.
How can I fix this issue? I mean I guess I need to install an earlier version of R, but apart from this, which refers to Windows I hadn't found any specific way to install an older version.
UPDATE
#Yilun Zhang I cannot find the place where I should change the R version. Where should it be:
Just try again or tomorrow.
You ended up with a (March 28) prerelease of R 3.1.0 which came today (April 10). The CRAN mirrors were not yet set up for this (at that point: unreleased) version 3.1.0. They are now. You should find ggplot2.
If you are using RStudio and have the older r version:
go to the navigation bar
go to tools
Global options
there is a section where you can choose the r version
If you are using just the R console, just go to the old r directory and open it.

Resources