Could not install R package source in R-studio - r

I have a source of one R package (http://stat.snu.ac.kr/heeseok/autots). I would like to install it in R-studio, however, I got an error.
Here is my try:
install.packages("/Users/Mary/Downloads/autots_2.3.3.tar.gz", repos=NULL, type="source")
Here is the error:
ERROR: dependencies ‘fBasics’, ‘fNonlinear’, ‘fGarch’, ‘fUtilities’, ‘tsDyn’, ‘tseriesChaos’ are not available for package ‘autots’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/autots’
Warning in install.packages :
installation of package ‘/Users/Mary/Downloads/autots_2.3.3.tar.gz’ had non-zero exit status

Related

package installation failed after installing R

I try to install the tidyverse and tidytext package in R and it gives me the following error
the message is similar in both I would like to know what is the cause and a possible solution
ERROR: dependencies ‘hunspell’, ‘tokenizers’ are not available for package ‘tidytext’
* removing ‘/home/yeferson/R/x86_64-pc-linux-gnu-library/4.0/tidytext’
Warning in install.packages :
installation of package ‘tidytext’ had non-zero exit status
was installed before R 4.0.0: please re-install it

Error in library("Hmisc"): there is no package called 'Hmisc'

I just installed R using anaconda, and I am following this tutorial:
https://www.analyticsvidhya.com/blog/2016/03/tutorial-powerful-packages-imputing-missing-values/
I learned that I need to install some package by using:
if(!require(Hmisc)) install.packages("Hmisc",repos = "http://cran.us.r-project.org")
There are some warning message i am not sure whether it means successful or not:
Loading required package: Hmisc
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called 'Hmisc'also installing the dependencies 'survival', 'ggplot2'
Warning message:
In install.packages("Hmisc", repos = "http://cran.us.r-project.org"): installation of package 'survival' had non-zero exit status
Warning message:
In install.packages("Hmisc", repos = "http://cran.us.r-project.org"): installation of package 'ggplot2' had non-zero exit status
Warning message:
In install.packages("Hmisc", repos = "http://cran.us.r-project.org"): installation of package 'Hmisc' had non-zero exit status
The downloaded source packages are in
'/tmp/Rtmpcf6rZ9/downloaded_packages'
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Then I tried to load the library with
library(Hmisc)
But I got the error,
Error in library(Hmisc): there is no package called 'Hmisc'
Does anyone know what might has happened? Thanks.
Edit:
I am suggested to try a few more ways, but they all have various error:
install.packages("Hmisc")
Error in contrib.url(repos, type): trying to use CRAN without setting a mirror
If I do:
install.packages("Hmisc",repos = "http://cran.us.r-project.org")
I got:
also installing the dependencies 'survival', 'ggplot2'
Warning message:
In install.packages("Hmisc", repos = "http://cran.us.r-project.org"): installation of package 'survival' had non-zero exit status
Warning message:
In install.packages("Hmisc", repos = "http://cran.us.r-project.org"): installation of package 'ggplot2' had non-zero exit status
Warning message:
In install.packages("Hmisc", repos = "http://cran.us.r-project.org"): installation of package 'Hmisc' had non-zero exit status
The downloaded source packages are in
'/tmp/Rtmpcf6rZ9/downloaded_packages'
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
I am suggested not to use Anaconda R, but because I mostly use rpy2 and jupiter notebook the most. I think using the Anaconda R may be the most straight forward method to get my jupiter notebook and python to work seamlessly with R.
I had a similar issue, solved it by installing "acepack" directly install.packages('acepack')
This is mysterious, regardless. I do an update of all packages in Conda. Then, I install Rstudio using anaconda. Then the error does not exist anymore...

Error installing "Quandl" in R 3.1.1

I have installed R 3.1. and RStudio 1.0.44 in BunsenLabs (Debian Jessie)
and I want to install the Quandl package.
In R console I write:
install.packages("Quandl")
and the output is:
ERROR: configuration failed for package ‘openssl’
* removing
ERROR: dependency ‘openssl’ is not available for package ‘httr’
* removing
ERROR: dependency ‘httr’ is not available for package ‘Quandl’
* removing
Warning in install.packages :
installation of package ‘Quandl’ had non-zero exit status
library(Quandl)
Error in library(Quandl) : there is no package called ‘Quandl’
Thanks,
RTA
Solution, write in linux terminal:
sudo apt-get install r-cran-openssl
Thanks

Cannot install any R packages?

I am using R 3.2.2 on a UNIX server (this is installed to my HOME).
Any package that I try to install returns an error message like this:
install.packages('knitr')
Warning: unable to access index for repository
https://cran.rstudio.com/src/contrib
Warning message:
package ‘knitr’ is not available (for R version 3.2.2)
I've also tried downloading the package source and installing manually, but that doesn't work:
install.packages('/home/baker/knitr_1.11.tar.gz',repos= NULL,type='source')
ERROR: dependencies ‘evaluate’, ‘digest’, ‘formatR’, ‘highr’, ‘markdown’, ‘stringr’, ‘yaml’ are not available for package ‘knitr’
* removing ‘/home/baker/R/lib64/R/library/knitr’
Warning message:
In install.packages("/home/baker/knitr_1.11.tar.gz", repos = NULL, :
installation of package ‘/home/baker/knitr_1.11.tar.gz’ had non-zero exit status
This is obviously a super frustrating problem...any ideas? I'm at a total loss.

Unable to install ggplot2 package in R on windows 8.1

I tried to install ggplot2 with following commands, but it can't install.
> library('ggplot2')
Error in library("ggplot2") : there is no package called ‘ggplot2’\
> install.packages('ggplot2', dependencies = T)
package ‘ggplot2’ is available as a source package but not as a binary
Warning in install.packages :
package ‘ggplot2’ is not available (as a binary package for R version 3.1.3)
>
Can you anybody advise what's going wrong?
When i use the command install.packages("ggplot2", type="source",dependencies = TRUE) I got following error
*** arch - i386
Warning: running command 'make -f "D:/R/R-31~1.3/etc/i386/Makeconf" -f "D:/R/R-31~1.3/share/make/winshlib.mk" SHLIB="acepack.dll" SHLIB_LIBADD='$(FLIBS)' OBJECTS="ace.o avas.o rlsmo.o"' had status 127
ERROR: compilation failed for package 'acepack'
* removing 'D:/R/R-3.1.3/library/acepack'
Warning in install.packages :
running command '"D:/R/R-31~1.3/bin/x64/R" CMD INSTALL -l "D:\R\R-3.1.3\library" C:\Users\surjya\AppData\Local\Temp\RtmpWyq9oh/downloaded_packages/acepack_1.3-3.3.tar.gz' had status 1
Warning in install.packages :
installation of package ‘acepack’ had non-zero exit status
Sometimes the mirrors take a long time to update, and they don't pick up the binaries of a package for a few days.
Try install.packages("ggplot2", type="source")
...which, from memory, often works on Windows.

Resources