Error while downloading "highcharter" package in r - 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.

Related

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.”

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.

An error when trying to install a package related to R version

I am trying to install the package ggpubr using the command install.packages('ggpubr') but I'm getting the error:
Installing package into ‘/home/nasser/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘cowplot’ is not available
I then tried to install the package cowplot using install.packages('cowplot') command and again I got the following error Warning in install.packages : package ‘cowplot’ is not available (for R version 3.4.4)
I searched for a solution and found a suggestion to use the following command:
devtools::install_github("wilkelab/cowplot")
and I got this error ERROR: this R is version 3.4.4, package 'cowplot' requires R >= 3.5.0
After a long time searching for a solution, I ended up having no perfect solution.
Can you please suggest me a way to avoid this error?
You have version 3.4.4 of R installed. The package cowplot requires version 3.5.0 or higher. You must upgrade your version of R.
Sometimes this is not possible (such as on a work network). In these cases, an alternative is to install an older version of cowplot that does not have that requirement. Of course, this means you are using an older version of the package. Archives are available on CRAN for older package versions.
https://cran.r-project.org/src/contrib/Archive/cowplot/

Not able to install TwitteR2Mongo Package in R

I am trying to install an R package for autonomous processing of Twitter data with the help of TwitteR2Mongo, but I'm getting the following error:
Warning in install.packages :
package ‘TwitteR2Mongo’ is not available (for R version 3.4.3)
package may not have been published to CRAN. but it builds from github for me on 3.4.3.
try
install.packages("devtools")
library(devtools)
install_github("ProjectTw/TwitteR2Mongo")

Resources