Is RDCOMClient still available? - r

I have spent the past several days trying to install RDCOMClient in order to integrate R output in MS Word using R2wd
Thanks to SO, I was finally able to wrestle devtools and other required packages into shape (man, that was way more difficult than it should have been!) but I have not been able to install RDCOMClient
The closest I have come is downloading RDCOMClient_0.93-0.zip and then receiving the error message
"Error: package ‘RDCOMClient’ was built before R 3.0.0: please
re-install it"
I also received the message
"package ‘RDCOMClient’ is not available (for R version 3.4.0)"
at one point.
I have tried the omegahat site as well as github and CRAN with no luck.
I am beginning to think the package is no longer available (I wish I had known that days ago!) but still wonder if I am missing something.
If the package is no longer available for version 3.4.0, can you suggest another package with similar functionality? I am looking to write analyses in MS Word and then embed tables, charts and other output from R.
Thanks!

Yes it is. You need to install Rtools first.
Then you can install RDCOMClient via:
remotes::install_github("omegahat/RDCOMClient")

Related

R studio install package failed

I tried to install the packages in the following way:
pacman::p_load(tidyverse, lubridate, zoo,
timetk, modeltime,
trelliscopejs, seasonal,
tsibble, feasts, fable)
However, I got the below errors:
I'm not sure what's wrong, I'm using the latest R version 4.2.1, the warning seems to suggest that need to change to 4.1.3, is there anyway to install those packages without changing the version?
The problem is not related to the package in itself. The warning about the version only tells you that the last time this package was built was on R 4.1.3, but it should work on R 4.2.
The problem is that the place where R searches this package doesn't exist. If you go here: https://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/, you will see that the last version of R is 3.4, whereas you're looking for a package built in R 4.1 (see the version in the URL address in the error message).
Here's some advice to solve this (I can't reproduce your problem so I can't be sure this works): if you're using RStudio, go to "Tools -> Global Options -> Packages". I think that under "Primary CRAN repository", there should be the name of the current place where R searches for the files to install each package. You can change this: either pick "Global (CDN) - RStudio" or any other that is not too far from your location. Then restart R and try reinstalling the packages.

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.

Difficulty installing a package in R linux, dalton_rqi

Downloaded package from below URL.
Attempted to install using below command; response shown.
library(dalton.rqi,lib.loc='/home/X/Desktop/')
Error: package ‘dalton.rqi’ was built before R 3.0.0: please re-install it
https://my.clevelandclinic.org/departments/anesthesiology/depts/outcomes-research/risk-quantification
It appears this is a compiled package that maybe I don't have the source for? Is there a way to force install of the package? I'm unable to install using Rstudio GUI in its current form as a zip. Tried repackaging to tar.gz has Rstudio was looking for and also had a non-zero exit status error.
Any ideas?
I'm afraid this can't be achieved directly. The error message says it well: to use a package in R it needs to be built on an R version matching yours.
I can suggest two ways to move forward:
Contact the authors, ask for the R sources (it is somewhat surprising they did not make them available in the first place), and build the package yourself.
Downgrade your R version as far back as needed to match the one this pre-built package used.

How to install Package MVTNORM

I am trying to install package mvtnorm, but it says that package ‘mvtnorm’ is not available (for R version 3.4.4)....
I believe this is happening cause of R version..... but When I am trying to upgrade R...it is not allowing me to do so.
I tried to install package "installr" for upgrading R, but it showed the same error - "installr’ is not available (for R version 3.4.4).
There is update tab under "HELP" on the console panel of the studio...it is not responding....
I am using Linux machine for the first time...so i am really confused on how to go about.
I hope to get this thing solved with some help from an expert who can guide me on how to proceed.

XML For R Statistics - OSX Version 2.15.1

I have tried to locate the XML package for the above version of R with no success. I have looked on http://www.omegahat.org/ and it goes to a 404 page: http://www.omegahat.org/XML
Basically I am trying to install the RGoogleAnalytics package and that also fails, though i suspect that is because I don't have the XML installed. Does anyone know where I can get the XML package from?
Thanks
Peter
After a bit more searching, I came across this guide, which gives some good hints as to installing RGoogleAnalytics. Here's a slight modification, in case the XML library really can't be found at omegahat:
The last part in step 2 asks you to install the XML library from omegahat. I could successfully install the package from CRAN, however. So simply install.packages("XML") at the R prompt should work.
Next, the guide says that you need to download the RGoogleAnalytics source package directly from Google at the following URL.
Once that was downloaded (and after I installed the RCurl package), I could install RGoogleAnalytics successfully.
For instructions on installing R packages from source, you could see this article on r-bloggers.com or the appropriate section of the R Installation and Admin documentation
EDIT:
The Google Code page for RGoogleAnalytics does suggest using the XML package from omegahat, and it does look like that package is a different version from the one on CRAN. I could successfully install the omegahat version using R 2.15.1 with the following from the R prompt
install.packages("XML",repos="http://www.omegahat.org/R",type="source")
EDIT2: installing RGA from source
If everything is prepared according to the RGA instructions on the Google page, you should be ready to install the RGA package from source with the following line (I had to add --no-multiarch, since XML wasn't installed for 32-bit architecture):
install.packages("~/Downloads/RGoogleAnalytics_1.1.tar.gz",
repos=NULL,type="source",INSTALL_opts="--no-multiarch")
I think you might want:
http://www.omegahat.org/RSXML/
Although it is equally possible that you should be using the XML package from CRAN. I just updated my older version with the current binary install (for R 2.14.2 on MacOS 10.5.8).

Resources