Unable to use Vegan Package on Mac OSX catalina - r

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.

Related

Unable to install package "Phytotools"

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

Unable to install semPLS package

I'm trying to install the semPLS package on my new MacBook but I get the error:
install.packages("semPLS")
Warning in install.packages :
package 'semPLS' 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
My RStudio is Version R Studio-2022.02.1 Build 461
I've also tried using the earlier version of R 0.99.486 but still have the same problem.
I've used this quite often in the past. It is only when I tried to install the package on my new laptop, that I can't.
I tried looking for the package on cran and cannot find it there. Any advice on how I can locate and install semPLS?
You can install it using the function install_github() from package "devtools"
install devtools:
install.packages("devtools")
library(devtools)
install semPLS:
install_github("cran/semPLS")

Problem with using rclinicaltrials package

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

How to fix version problem when installing TTR

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/')

can't install ks package in R

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.

Resources