Installing SVGAnnotation package under R 2.15.3 - r

I have troubles installing the SVGAnnotation package under R 2.15.3
Because this package is not available at CRAN, I downloaded version 0.93-1 from http://www.omegahat.org/SVGAnnotation/
and try to install it via
install.packages("SVGAnnotation_0.93-1.tar.gz", repos=NULL,
type="source")
Unfortunately, the following problem occurs:
Anyone has an idea how I could get it to work for R 2.15.3?

If you would like to install the most recent version, try
library(devtools)
install_github('duncantl/SVGAnnotation')

Related

Error while downloading "highcharter" package in r

I am trying to download "highcharter" but got the error below. I also tried installing "rjson" but I got "package ‘rjson’ is not available (for R version 3.6.3)" message
ERROR: dependency 'rjson' is not available for package 'highcharter'
* removing 'C:/Users/elif.gencaslan/Documents/R/win-library/3.6/highcharter'
Warning in install.packages :
installation of package ‘highcharter’ had non-zero exit status
The problem: Outdated R version
The latest version of rjson (0.2.21) depends on R version >= 4.0.0 (see CRAN), and it seems like you have R version 3.6.3.
Best solution: Update R
Your best option is to update your version of R before installing rjson or highcharter.
Alternatives: Install old version of rjson
An alternative is to install an older version of rjson (0.2.20 should work with your version of R).
You can either do this with packages like renv:
renv::install("rjson#0.2.20")
Or remotes:
remotes::install_version("rjson", "0.2.20")
Or you could download it and install it manually from this mran snapshot.

I can't install survminer package

I want to install surminer package but I see this code in R console
Warning in install.packages :
package ‘surminer’ 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-package
How can i install surminer package?
have you tried installing via Github? (I'm guessing you mean survminer, not surminer)
library(devtools)
install_github('kassambara/survminer')

installing quantstrat in 3.5.1 version

I'm trying to install quantstrat but it says to me:
Warning in install.packages :
package ‘quantstrat’ is not available (for R version 3.5.1).
There is a way to do that anyway?
my code:
install.packages("quantstrat")
quantstrat isnt available from CRAN. You need to download it from github, so you need to install devtools and then install from github.

dependency ‘slam’ is not available when installing TM package

I was able to use the library(tm) in r without problem until today, when loading tm shows:
library(tm)
Loading required package: NLP
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘slam’
Error: package or namespace load failed for ‘tm’
I thought this is a dependency issue and seek to reinstall package
install.packages("tm")
Warning in install.packages : dependency ‘slam’ is not available
and then try to find slam:
install.packages("slam")
Warning in install.packages :
package ‘slam’ is not available (for R version 3.2.4)
I also tried some of the issues listed here and chooseCRANmirror(), still no luck. Is there something wrong with the package or is it just that my r does not allow 'slam' to install after today?
session info
> sessionInfo()
R version 3.2.4 (2016-03-10)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.6 (El Capitan)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] NLP_0.1-9
loaded via a namespace (and not attached):
[1] parallel_3.2.4 tools_3.2.4
For R-version 3.2.3, following worked fine as mentioned in this link and it suggests this works for R-version 3.3.0 as well:
#install devtools if you have not installed
install.packages('devtools')
library(devtools)
slam_url <- "https://cran.r-project.org/src/contrib/Archive/slam/slam_0.1-37.tar.gz"
install_url(slam_url)
I found a hint at this german site about R under Install additional R packages ("Zusätzliche R-Pakete installieren")
After I installed slam seperatly over apt-get for example:
sudo apt-get install r-cran-slam
I could install tm the normal way:
install.packages('tm')
And load the library aswell.
I hope my answer helps someone.
I had the same problem as you.
Slam "Depends: R (≥ 3.3.1)", this why I had to perform the following actions to successfully install and load "tm" package:
Update R from 3.2.5 to the latest version 3.3.2
install.packages("tm")
also installing the dependencies ‘NLP’, ‘slam’
package ‘NLP’ successfully unpacked and MD5 sums checked
package ‘slam’ successfully unpacked and MD5 sums checked
package ‘tm’ successfully unpacked and MD5 sums checked
library(tm)
I used the following code to install the binary or the older version of slam. It worked for me.
install.packages("slam", type = "binary")
I had the same problem and:
I upgraded RStudio to the latest version (1.0.143)
I upgraded R to the latest version (R.3.3.3)
I rebooted Rstudio
I installed again in RStudio the package "tm"
I ran library(tm)
and everything works fine now.
The latest version of the package "slam" only works for R(>=3.4.0),so you can try either updating your R to the latest version or downloading an early version of the "slam" package.
This is a download link from CRAN for early version of "slam" package: https://cloud.r-project.org/bin/macosx/mavericks/contrib/3.3/slam_0.1-40.tgz.
Apparently the problem seems to be the version of R you are using. Try installing the latest version of R, 3.3.1. That should take care of it.
I am using R3.2.5. I was trying to install "tm". I did install NLP as a dependency but gave me an error :
"package ‘slam’ is not available (for R version 3.2.5)"
The option I had to was to download the zip/tar/gz file(binaries) from https://cran.r-project.org/web/packages/slam/index.html and install the package.
It worked for me after that. Although I am not sure what the problem is because the library information mentions it is for R (≥ 3.3.1)
I also had to upgrade to the most recent version of R.
Specifically, on Ubuntu 16.04 here are instructions to get the up to date R version.
I faced this error while installing the "tm" package on R version 3.3.0. Seems like some missing libraries. After I could install the latest version 3.4.1 , i was able to install the package "tm" which installed the 'slam' on its own. Hope this may help somebody.
Just Install NLP package with dependencies = True
Install tm packaged with dependencies = True
And things should work out:)
For Ubuntu, I installed the following two from console and then it got installed.
sudo apt-get install libblas-dev liblapack-dev
sudo apt-get install gfortran
For any such type of issue regarding package not installed, update your R and later reinstall the package. These are the steps you follow:
if(!require(installr)){ install.packages("installr")}
require(installr)} #load the package
updateR()

genderdata package unavailable for R 3.2.3

When I try installing the package "genderdata" to R,
install.packages("genderdata")
I get the following error:
Warning in install.packages :
package ‘genderdata’ is not available (for R version 3.2.3)`
Is there any way around this?
I tried this in my version of R 3.1.1 and got the same error message as you. When I looked closer it also said:
package ‘genderdata’ is available as a source package but not as a binary
I searched around some more and came up with this which worked for me.
options(repos = c("http://packages.ropensci.org/", getOption("repos")))
install.packages("genderdata", repos = "http://packages.ropensci.org", type="source")
I got several warnings but it did install and can be loaded with
library(genderdata)
Try installing from a source that doesn't limit you based on your R version with devtools and github.
install.packages('devtools')
library(devtools)
install_github("ropensci/genderdata")
library(genderdata)

Resources