Failed to install libgit2 on linux - r

install.packages("libgit2")enter image description here
Installing package into â/ldfssz1/ST_INFECTION/P17Z10200N0246_Phage_XMF/USER/luoyunzhe/software/Rlibraryâ
(as âlibâ is unspecified)
Warning message:
package âlibgit2-devâ 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

The error is right there - that package is not available for your version of R.
If you need that package I suggest you look it up on CRAN and find which versions of R are supported.

Related

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/

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.

install arcgisbinding package in R version 3.5.0,get warning: as ‘lib’ is unspecified,package ‘‘arcgisbinding’ is not available

I try to install "arcgisbinding" package in R version 3.5.0. But I failed, get the following error and warning.
Installing package into ‘C:/Users/Lenovo/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘‘arcgisbinding’ is not available (for R version 3.5.0)
I also try to install this package in R version 3.4.3, get the same error and warning. I thought the main reason for this is the ‘lib’ is unspecified.
I am confused because that the "arcgisbinding" package can be installed on R >= 3.2, based on the introduction of the official website - PDF.
Could anyone help me? Thanks so much.
First, download the "arcgisbinding" package manually from GitHub: https://github.com/R-ArcGIS/r-bridge/releases/tag/v1.0.1.232.
Second, install this package in Rstudio using the menu "Tools">"install packages", and then choose the downloaded package archive. The installation is very fast.

warning: package ‘grid’ is not available (for R version 3.1.2)

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

Error installing SPEI package in R

I am trying to install SPEI in Rstudio, version 1.1.414, running on Windows 7. However, I get the following error message in the console:
install.packages("SPEI")
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘goftest’ is not available
also installing the dependency ‘lmomco’
It appears that this "goftest" package is unavailable, so how can I proceed?
Thank you.
'goftest' documentation says
Depends R (>= 3.3)
so probably you should upgrade to a later version of R to use the package: https://cran.r-project.org/web/packages/goftest/goftest.pdf

Resources