I'm trying to install the "tidyverse" package and I get the following warning:
Warning in install.packages :
package ‘tidyverse’ is not available (for R version 3.2.2)
I can install each package individually, but who wants to do it again and again..!
should I install the older version of R?
Actually you need a newer not older version of R so update R and you should be good to go.
Related
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 am trying to run an R application(on Ubuntu 16.04.6) which uses the 'car' package, but everything I tried ended with the following error package ‘car’ is not available (for R version 3.4.4) . What should I do?
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/
I get a
warning: package ‘grid’ is not available (for R version 3.1.2)
but I am using R studio Version 1.0.153? I do have R 3.1.1 on my computer.
There are two warnings about,
warning:package ‘gridExtra’ was built under R version 3.1.3
warning: package ‘ggplot2’ was built under R version 3.1.3
I have checked the most viewed question, learned a lot, but still not solving my issue here..
--update--the detailed console is--
install.packages("grid")
Installing package into ‘C:/Users/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘grid’ is not available (for R version 3.1.2)
grid is a built-in package (when I do help(package="grid") it tells me Priority: base), which means it is included in every installation of R automatically. It doesn't exist on CRAN (the "Centralized R Archive Network", I think?), and can't be installed via install.packages().
When I run install.packages("grid") I get
install.packages("grid")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning messages:
1: package ‘grid’ is not available (for R Under development)
2: package ‘grid’ is a base package, and should not be updated
which is entirely as expected ...
If you run library("grid"), it should just work. (If it doesn't you have a badly screwed-up R installation and should probably re-install ...)
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")