Use cloud as mirror to download R package - r

I'm using R version 2.15.1 on Mepis 12.
I was trying to install a package called languageR (along with 3 more, see below), used in the book Analyzing Linguistic Data (R.H.Baayen). The problem is this:
> install.packages("languageR",repos = "http://cran.r-project.org")
Installing package(s) into ‘/home/nalerive/R/x86_64-pc-linux-gnu-library/2.15’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘languageR’ is not available (for R version 2.15.1)
Upgrading is not really an option, unless it's really necessary to do so (I want to work with lme4 as well, which I already have, but have no experience with it in this R version yet).
So, I sent an email to the author and asked him what to do. His reply was:
If you select the cloud as mirror, then you should be able to install
languageR, and separately e1071 (it lives on CRAN), the successor of
design (rms), and ape (it also lives on CRAN)
My question is, then, what is cloud mirror and where can I find it?
Any help would be highly appreciated!

languageR has R (≥ 3.0.2) in its Depends (see the CRAN page). Preferably you update R, but alternatively you can install from an older source.

Related

Unable to install Peaks package: package ‘Peaks’ is not available for this version of R [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 12 months ago.
I am working with series data and want to count the number of local 'maxima' and 'minima' (i.e. peaks and troughs/oscillations) along each series. I want to use the 'Peaks' package for this but only get the following error:
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
Warning in install.packages :
package ‘Peaks’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
As suggested I installed rtools without any problems but it still returned the same error when I tried installing 'Peaks'. I have not found any information at the cran.r-project link and have also tried to install findpeaks but got the same error. I am not actually sure what version I am running on my desktop (how do you check?); but I have tried it also on Rstudiocloud, which I think is the latest version (4.1.2).I have also tried:
findPeaks(MaxMn, thresh=0)
findValleys(MaxMn, thresh=0)
but R couldn't find the function. I'm a little confused about whether it is a package or function and what I need to do to make it happen. Any suggestions would be greatly appreciated.
Peaks vignette: https://www.rdocumentation.org/packages/splus2R/versions/1.3-3/topics/peaks
After installing Rtools, you need to put it on the system PATH so that R can find it while trying to build a package from its source code. It's highly likely that in your case Rtools is installed but not on the system path.
You can find the latest details on the process of installing rtools, adding to path and verifying installation is correct from Rtools page (https://cran.r-project.org/bin/windows/Rtools/rtools40.html).
The package is no longer available on CRAN: "Archived on 2019-04-18 as check problems were not corrected despite reminders."
From googling "R detect peaks", it looks like there are a number of current packages you might be able to use, including pracma and peakPick. In addition to CRAN, this also feels like something the Bioconductor repository may have packages for.

Installing package webr failed

I am having issues installing the 'webr' package in R, which is necessary to use the PieDonut function to make beautiful multi-level pie charts.
I have followed the instructions on this website, which demonstrates how to install the packages and work with it. https://rpubs.com/cardiomoon/398623
However, when installing the package 'webr' it says:
Failed to install 'webr' from GitHub:
(converted from warning) package ‘mnormt’ is not available (for R version 3.6.2)
It is necessary to install it from GitHub because the CRAN version does not include the PieDonut function.
I already tried to search for older versions of the package and made sure that my R version was up to date, however this did not result in any progress.
Does anybody have any suggestions to help me use this package?
You are on R 3.6.2, whereas mnormt requires R 4.0.0 or higher.
Installing an older version of the package can go from easy to "I want to jump out the window" difficult. If you go to the package archive you can find a version that will not depend on newer version of R than you have. You can install it from source with, if I remember correctly, something along the lines of
install.packages("https://cran.r-project.org/src/contrib/Archive/mnormt/mnormt_1.5-7.tar.gz",
repos = NULL,
type = "source")
Assuming all its dependencies do not require something you do not have (i.e. R >= 4.0.0), it should work. If not, you would have to install mnormt dependecies by hand as well, as well as any potential dependencies of dependencies. See what I mean by jumping out of the window?
Alternatively, upgrade your R and you avoid these kinds of problems (in 99.9 % of the time).

RMySQL package not available for R 3.1.0. What else can be used?

I was trying to use a package to connect R and MySQL to run stats on a database in a local environment. It seems like the package "RMySQL" is not available for the current version of R.
Following is what R spit out:
install.packages("RMySQL")
Installing package into ‘C:/Users/xxxx/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
package ‘RMySQL’ is available as a source package but not as a binary
Warning in install.packages :
package ‘RMySQL’ is not available (for R version 3.1.0)
Two quick questions:
What is the difference between source package and binary?
Is there another package available that does the same job and is compatible with R 3.1.0?
I would really appreciate your help!
Please, read http://cran.r-project.org/bin/windows/contrib/3.1/ReadMe:
Packages related to many database system must be linked to the exact
version of the database system the user has installed, hence it does
not make sense to provide binaries for packages
RMySQL, ROracle, ora, TSMySQL, dbConnect
although it is possible to install such packages from sources by
install.packages('packagename', type='source')
after reading the manual 'R Installation and Administration'.
Since RMySQL requires compilation, you need the Windows toolset.

Can I use package 'imputation' in R version 3.0.3?

I am using R version 3.0.3.
I would like to install the package "imputation". I would like to re-run an analysis I used last year in R version 3.0.2.
I also have a new computer so I am re-installing my packages. I would like to install the package "imputation".
install.packages("imputation")
However, I received the following error:
Installing package into ‘\\oxdc/userdata/jolyon.faria/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘imputation’ is not available (for R version 3.0.3)
How can I work around this problem? I thought I could perhaps run two versions of R on the same computer but this may throw up its own problems.
Always check CRAN for package problems:
http://cran.r-project.org/web/packages/imputation/
You might be able to get it working on 3.0.3 or later by installing from source via the source archive.
Or contact the maintainer and ask them if they can fix the problem that caused the removal from CRAN.

R connection to Bloomberg

I would like to know if there is a way to connect R to Bloomberg in order to get real market data (the RBloomberg package does not work on the latest R version :
install.packages("RBloomberg")
Installing package(s) into ‘C:/Documents and Settings/b001akh/My Documents/R/win-library/2.15’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘RBloomberg’ is not available (for R version 2.15.0)
)
Otherwise, I know that there are other packages to get market quotes with R such as quantmod but I would like to use Bloomberg to avoid the 15-20 min delay.
Thanks.
Some good news for you:
The package formerly known as RBloomberg has been renamed Rbbg
so try
install.packages("Rbbg", repos = "http://r.findata.org")
For completeness, allow me to mention that Whit, John and I released a new package Rblpapi to CRAN which you can install directly via
install.packages("Rblpapi")
It does not depends on Java, and works on Windows, OS X and Linux.

Resources