I can not install tm package - r

I have big problem to install tm package in R
install.packages("tm")
Warning in install.packages :
package ‘tm’ is not available (for R version 3.5.2)
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/3.5:
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/PACKAGES'

Related

Unable to install R package library(psych)

library(psych)
Error in library(psych) : there is no package called ‘psych’
Warning: unable to access index for repository https://mirrors.ebi.ac.uk/CRAN/src/contrib:
cannot open URL 'https://mirrors.ebi.ac.uk/CRAN/src/contrib/PACKAGES'
Warning: unable to access index for repository https://mirrors.ebi.ac.uk/CRAN/src/contrib:
cannot open URL 'https://mirrors.ebi.ac.uk/CRAN/src/contrib/PACKAGES'
install.packages("psych", dependencies = FALSE)
Warning in install.packages :
unable to access index for repository https://mirrors.ebi.ac.uk/CRAN/src/contrib:
cannot open URL 'https://mirrors.ebi.ac.uk/CRAN/src/contrib/PACKAGES'
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/user/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository https://mirrors.ebi.ac.uk/CRAN/src/contrib:
cannot open URL 'https://mirrors.ebi.ac.uk/CRAN/src/contrib/PACKAGES'
Warning in install.packages :
package ‘psych’ is not available (for R version 3.4.3)
Warning in install.packages :
unable to access index for repository https://mirrors.ebi.ac.uk/CRAN/bin/windows/contrib/3.4:
cannot open URL 'https://mirrors.ebi.ac.uk/CRAN/bin/windows/contrib/3.4/PACKAGES'
Please, what can I do to get this resolved? thank you.

Installation of factoextra package in R studio

I am trying to install factoextra package in R Studio (v.1.2.1335 on Mac), however, I get error messages for each of the several approaches I tried.
I tried simple installation as well as installing the package source from https://cran.r-project.org/web/packages/factoextra/index.html.
install.packages("factoextra")
install.packages("~/Desktop/factoextra_1.0.5.tar.gz", repos = NULL, type = "source")
package ‘factoextra’ is available as a source package but not as a binary
Warning in install.packages :
package ‘factoextra’ is not available (for R version 3.1.2)
When installing the package source I get an error message:
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'zone/tz/2019a.1.0/zoneinfo/America/Toronto'
ERROR: dependency ‘ggpubr’ is not available for package ‘factoextra’
* removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/factoextra’
Warning in install.packages :
installation of package ‘/Users/lihieder/Desktop/factoextra_1.0.5.tar.gz’ had non-zero exit status
I also tried installing package ggpubr but run into similar issues even when trying to install the source package for ggpubr.
Any ideas?
only use
install.packages("factoextra")

How to update R in Rstudio anaconda

R in terminal (3.5.1) -i use Linux- is not the same version on RStudio Anaconda (3.5.0).
RStudio 1.1.456 is update.
> install.packages('devtools')
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
Warning in install.packages :
package ‘devtools’ is not available (for R version 3.5.0)
So i can't use the updateR()

Error installing Broom and Nlme package in R

I am currently using RStudio for R right now. I am trying to use the broom::tidy function but am unable to install the broom package.
install.packages("broom")
generates the error:
ERROR: dependency ‘nlme’ is not available for package ‘psych’
* removing ‘/home/gherr/R/x86_64-pc-linux-gnu-library/3.2/psych’
Warning in install.packages :
installation of package ‘psych’ had non-zero exit status
ERROR: dependencies ‘psych’, ‘nlme’ are not available for package ‘broom’
* removing ‘/home/gherr/R/x86_64-pc-linux-gnu-library/3.2/broom’
Warning in install.packages :
installation of package ‘broom’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpwPtSkh/downloaded_packages’
install.packages("nlme")
generates this error:
Installing package into ‘/home/gherr/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘nlme’ is not available (for R version 3.2.3)
It appears that I am only unable to install the 'nlme' package and the other two installs are failing because it is a dependency.

Bioconductor package useR2013

I cannot install package useR2013, I try all possible commands from bioconductor web site and nothing. All the time I get the same message from R. Can You give any tips?
output of sessionInfo():
> install.packages("useR2013", repos=NULL, type="source")
Warning in install.packages :
package ‘useR2013’ is not available (for R version 3.0.1)
Installing package into ‘C:/Users/Bartek/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
Ostrzeżenie: błędny pakiet 'useR2013'
BŁĄD: BŁĄD: nie określono pakietów
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-30~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\Bartek\Documents\R\win-library\3.0" "useR2013"' had status 1
Warning in install.packages :
installation of package ‘useR2013’ had non-zero exit status
OR
> source("http://bioconductor.org/biocLite.R")
> install.packages("useR2013")
Warning in install.packages :
package ‘useR2013’ is not available (for R version 3.0.1)
Installing package into ‘C:/Users/Bartek/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘useR2013’ is not available (for R version 3.0.1)

Resources