Error installing R package forecast - r

Im trying to install the "forecast" package in R and I keep getting the following error
Error in install.packages : Found continuation line starting ' <link rel="s ...' at begin of record.
I'm running R 3.2.2 Windows 64 bit
I've tried these, I get the same error
install.packages("https://cran.r-project.org/src/contrib/forecast_7.1.tar.gz ",repos=NULL, dependencies = TRUE)
install.packages("forecast", dep = T, lib="C:/Projects/Consumption curves/Rpackages")
install.packages("forecast", type="source")

Related

installing a R package in the cluster

I wanted to install some R package in a cluster (with the specific version) to do my analysis, this are my code
devtools::install_version("lme4", version = "1.1-23",repo = "https://lib.ugent.be/CRAN/", dependencies = TRUE, type = "source",options(warn=0, error=NULL))
But I get an error message
“Error: Failed to install 'unknown package' from URL:
'arg' must be NULL or a character vector
Execution halted
”
can anybody guide me, what should I do?

error message while installing R Markdown on R version 4.0.1 on Windows

I am new to R and trying to install R Markdown on RStudio but it keeps giving me error messages eg
Warning in install.packages :
package ‘(tools)’ is not available (for R version 4.0.1)
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/4.0:
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/PACKAGES'
Are you sure you have internet? try install.packages("Rmarkdown", dep = TRUE) you may also need to install latex for your system

R Not able to install CHAID

I am trying to install CHAID package into R using the command below.
install.packages("CHAID", repos="http://R-Forge.R-project.org")
I keep getting the response
Error in dev.off() : could not find function "dev.off"
Execution halted
In R CMD INSTALL
Warning in install.packages :
installation of package ‘CHAID’ had non-zero exit status
The OS is Windows10. R is running the latest 3.5.1
I tried to google the error and find a fix but without success.
Make sure you have the partykit package installed first before installing CHAID. That worked for me.

R Programming - Error

I am unable to execute any instruction in R. Getting below error.
Error in library("colorout") : there is no package called "colorout"
Also trying to execute: Rscript.exe -e ".libPaths()"
Warning message:
package 'plyr' was built under R version 3.5.1 Error
in sys.source(".my_custom_functions.r", envir = custom_env) :
'.my_custom_functions.r' is not an existing file

Installing local package on R 3.2.2 failed

Installing an old version of caret on my custom R version was a burden.
I tried using the RStudio installation tool, but failed
I tried the command:
pathToFile <- "C:/Users/Fsociety/Desktop/caret_5.17-7.tar"
install.packages(pathToFile,repos = NULL, type = "source")
I got this error:
Warning: invalid package 'C:/Users/Fsociety/Desktop/caret_5.17-7.tar'
Error: ERROR: no packages specified
Warning in install.packages :
running command '"C:/PROGRA~1/RRO/RRO-32~1.0/R-32~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\Fsociety\Documents\R\win-library\3.2" "C:/Users/Fsociety/Desktop/caret_5.17-7.tar"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/Fsociety/Desktop/caret_5.17-7.tar’ had non-zero exit status
Is there any thing wrong with the install.package that I can fix?

Resources