installing quantstrat in 3.5.1 version - r

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.

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

Warning in install.packages : package ‘rattle’ is not available (for R version 3.4.4)

I was trying to install.packages("rattle")
but it shows this :
Installing package into ‘/home/shahin/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘rattle’ is not available (for R version 3.4.4)
I am in ubuntu 18.04. I also tried to install RGtk2 that also shows error. How can i install rattle?
rattle requires R version 3.5.0 or higher.
Update R to the latest version, then you'll be able to install it.
You need to update your R version following these instructions : Ubuntu Packages for R. Pay attention to the Secure APT section.
Please run below commands in order to update your version:
install.packages("installr")
library(installr)
updateR()
This will start the updating process of your R installation by: “finding the latest R version, downloading it, running the installer, deleting the installation file, copy and updating old packages to the new R installation.”

How to install XCMS package in R

When I am trying installing XCMS using command install.packages("xcms")
I got the following warning:
Installing package into ‘C:/Users/pma/Desktop/R3/packages’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘xcms’ is not available (for R version 3.4.4).
I can't find any reference to this problem in the forums,
can anyone suggest a solution? Thank you!
I should add that I am working in corporate environment cannot install updated versions than 3.4.4. I have already tried installing 3.3 version it did not work. I am using windows 10, R Studio Version 1.1.456
xcms is a package which is available through Bioconductor. Please see the website of Bioconductor on how to install xcms.

unable to install quadprog package on R Version 2.13.0 on mac

I am unable to install quadprog package on R Version 2.13.0 on mac
install.packages("quadprog", repos="http://R-Forge.R-project.org")
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package ‘quadprog’ is not available (for R version 2.13.0)
Regards,
Jasdeep Mandia
Simply enough, quadprog isn't hosted on r-forge. Why are you trying to use r-forge instead of CRAN?
Perhaps you are thinking of Rquadprog? It is hosted on r-forge. On a Mac you will need to use the type="source" argument to install.packages for anything on r-forge, and you may need to install Xcode if the package is not just pure R code.

Resources