Error installing twitter AnomalyDetection package from git - r

This is what I get when I attempt to install package AnomalyDetection.
Downloading GitHub repo twitter/AnomalyDetection#master
from URL https://api.github.com/repos/twitter/AnomalyDetection/zipball/master
Installing AnomalyDetection
Error in _digest(c(list(repos, type), lapply(_additional,
function(x) eval(x[[2L]], : object 'digest_impl' not found
I am using Windows and R version 3.1.1.

Related

having error when download package from Github in R?

I need to install the package from Github. More precisely ggsankey, however, when I run this code there is an error:
devtools::install_github("davidsjoberg/ggsankey")
WARNING: Rtools is required to build R packages, but is not currently installed.
Please download and install Rtools 4.2 from https://cran.r-project.org/bin/windows/Rtools/ or https://www.r-project.org/nosvn/winutf8/ucrt3/.
Downloading GitHub repo davidsjoberg/ggsankey#HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet, :
cannot open URL 'https://api.github.com/repos/davidsjoberg/ggsankey/tarball/HEAD'

is plotkml no longer updated for current R release and if so how can i install it anyway?

This is my r version: 4.2.0
But the last updated file for this package in the archives is plotKML_0.8-2.tar.gz from 2021-10-30.
I downloaded it from the archive but R studio still doesn't allow me to install it. The error I get is : ERROR: dependencies 'gstat', 'colorRamps', 'pixmap', 'XML', 'dismo', 'landmap', 'aqp', 'spacetime', 'plyr', 'stars' are not available for package 'plotKML'
What should I do to install it?

Unable to install 'cli' package from GitHub repository using remotes::install_github()

I had recently posted a question about a unicode display issue linked here. The problem then was the 'cli' package bug in the version cli v2.0.0. This bug had been brought up and has been solved on the master branch on GitHub by the developer. I am trying to install the same using remotes::install_github("r-lib/cli"). RStudio connects to GitHub fine, downloads the package, begins installing it, goes onto the step for building the package and then returns an error. The error message is copied below:
Error: (converted from warning) Setting LC_CTYPE failed, using "C"
Execution halted
Error: Failed to install 'cli' from GitHub:
(converted from warning) installation of package '/var/folders/n0/__v02y5j02sby1w2_39185sh0000gn/T//Rtmp5HnvTL/file865408954cc/cli_2.0.0.9000.tar.gz' had non-zero exit status
Session information:
R version 3.6.1
macOS Catalina
Steps taken to solve the problem:
1.Have tried using the 'devtools' package to do the same; Same error message
2.Have reinstalled the Xcode developer tools on the system
3.Tried removing and reinstalling 'cli'. I can install from CRAN with the same bug in it; still cannot install from GitHub repo.
Any thoughts would be appreciated.
The same commands worked when I ran them in R console through terminal as superuser (sudo R from terminal). The packages compiled properly and installed.
Two pages which helped are linked below:
[Installing a package inside RStudio fails on macOS Catalina
[https://support.rstudio.com/hc/en-us/articles/200554786-Problem-Installing-Packages]

Installing packages under R devel version

I'm using the current R-devel version (3.3.0, r68650). If I try to install an R package then the following error occurs:
> install.packages('RCurl')
--- Please select a CRAN mirror for use in this session ---
Error in url("https://cran.r-project.org/CRAN_mirrors.csv") :
https:// URLs are not supported
Actually I read that to be able to use https urls I have to install RCurl first.
As next I tried to set the repos parameter explicit to the HTTP version:
> install.packages('RCurl', repos='http://cran.r-project.CRAN_mirrors.csv')
Warning: unable to access index for repository http://cran.r-project.CRAN_mirrors.csv/src/contrib
Warning message:
package ‘RCurl’ is not available (for R Under development)
The problem appears is not only with the RCurl package but any package I tried.
how can I install packages on the R Development version?
You need to pick a mirror from that csv file. The csv isn't a mirror itself.

Error in set(new) : cannot change working directory on installation of SOfun

I wanted to install SOfun package on my new R 3.1.2 but it stopped with an error shown below.
devtools::install_github("mrdwab/SOfun")
WARNING: Rtools is required to build R packages, but no version of Rtools compatible with R 3.1.2 was found. (Only the following incompatible version(s) of Rtools were found:3.2)
Please download and install Rtools 3.1 from http://cran.r-project.org/bin/windows/Rtools/ and then run find_rtools().
Downloading github repo mrdwab/SOfun#master
Installing SOfun
Error in set(new) : cannot change working directory
I would appreciate any suggestion to solve this error.

Resources