I'm new in R programming. Want a run little script for TTR package, but getting version error
Here is my code part
options(repos=(CRAN="https://CRAN.R-project.org/package=TTR"))
install.packages("https://CRAN.R-project.org/package=TTR")
and here is error I get
Warning: unable to access index for repository https://CRAN.R-project.org/package=TTR/src/contrib:
cannot open URL 'https://CRAN.R-project.org/package=TTR/src/contrib/PACKAGES'
Warning message: package 'https://CRAN.R-project.org/package=TTR' is not available (for R version 3.4.4)
Error in library(TTR) : there is no package called 'TTR'
but when I run TTR library from https://rdrr.io/snippets/ , it works well, and R version in the link is 3.4.4
How can I solve this problem?
EDIT: I see this question How should I deal with "package 'xxx' is not available (for R version x.y.z)" warning?, but can not find my solution
I tried it with your command, and i get the same error. But using the standard way with install.packages does the job.
You can install the package with:
install.packages('TTR', dependencies=TRUE, repos='http://cran.rstudio.com/')
Related
Does anyone know what version of R "phytotools" is made for? I have the most recent version of R, (I updated it today, 2022-08-17), and i need to download phytotools. However I get an error message and cannot figure out what version of R it needs. Thanks
install.packages("phytotools")
Warning in install.packages :
package ‘phytotools’ 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
I wish to use a package called rclinicaltrials, on using install.packages(), I get the following message -
Warning in install.packages :
package ‘rclinicaltrials’ 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
And after installing, on using library(), I get the message -
Error in library(rclinicaltrials) :
there is no package called ‘rclinicaltrials’
Is there any way of using this package in my version of R? I am using R version 4.1.0 (2021-05-18). Or do I need to install an older version of R?
Thank you
Is anyone able to help with the following error code or knows a different way to install the vegan package?
Tried both codes below... Need to do some MDS plots!
Code:
install.packages('vegan')
install.packages('vegan', dependencies=TRUE, repos='http://cran.rstudio.com/')
Error Message:
Warning in install.packages :
package ‘vegan’ is not available (for R version 3.3.2)"
You are simply using a (very!) old version of R. Update to the latest version and everything should work fine.
I'm trying to install data.table library for R, but I can't get it to work.I've tried using both CRAN and Bioconductor but I keep getting an error that the package is not available for R 3.2.2:
> biocLite('data.table')
BioC_mirror: http://bioconductor.org
Using Bioconductor version 3.1 (BiocInstaller 1.18.4), R version 3.2.2.
Installing package(s) ‘data.table’
Warning: unable to access index for repository
https://cran.rstudio.com/src/contrib
Warning: unable to access index for repository
https://cran.rstudio.com/src/contrib
Warning message:
package ‘datatable’ is not available (for R version 3.2.2)
> install.packages("data.table")
Warning: unable to access index for repository
https://cran.rstudio.com/src/contrib
Warning message:
package ‘data.table’ is not available (for R version 3.2.2)
I really have no clue what to do...very new to R.
I faced a similar issue trying to install data.table using RStudio (V 0.99.903) and R (latest version 3.3.1) on windows 8. I issued the command install.packages('data.table') but it failed. What worked for me was running the install.packages with R directly. It got installed properly.
When RStudio gives a popup to restart the session before package installation, we need to click "Yes". This refreshes RStudio's memory and at the same time, the dataframes in memory won't be lost. After this step, just use the following commands -
install.packages("data.table")
library(data.table)
and data.table is installed and loaded
I just had this problem. I realized that I hadn't restarted since re-installinging R. After restarting, the problem vanished.
I deleted the data.table folder created in my documents after installation then I went ahead to re-install the package and it worked.
I tried to install package ks, using code
install.packages("ks-package")
library("MASS")
library("ks")
but got next error:
Warning message:
package ‘ks-package’ is not available (for R version 2.15.2).
After that I tried to use latest R version for this code, but again got error message:
Warning message:
package ‘ks-package’ is not available (for R version 3.0.2)
Please, help me to understand, why there is this error and how can I resolve it...
With the most recent version of R, this should have succeeded:
install.packages("ks", dependencies=TRUE)
library("ks")
If you were using version 2.15.x, then yyou should have the tools for installing from source and then this should have worked:
install.packages("ks", dependencies=TRUE, type="source")
library("ks")
There are some mirrors that maintain copies of binary versions of packages for some OS, but you did not provide the needed information for specific comment on that issue.