Installing text mining package in R on Linux - r

I am using R version(3.0.1) on Linux Mint 16
When I tried downloading the tm package using
install.packages("tm")
it gives me an error saying:
package ‘tm’ is not available (for R version 3.0.1)
How can I possibly fix this?

cran page http://cran.r-project.org/web/packages/tm/index.html says : R (≥ 3.1.0).

Download the applicable old version here and then install from source:
install.packages(file_name_and_path, repos = NULL, type="source")
Reference

Related

Error installing package RandomFields from Package Archive in R

I'm trying to install the package georob, which is no longer on CRAN. In order to install georob, I need first to install the package RandomFields which is no longer on CRAN neither. Therefore, I downloaded the file RandomFields_3.3.tar.gz from CRAN Archive and then tried to install the package RandomFields with the following command in R:
install.packages(pkgs = "C:/documents/RandomFields_3.3.tar.gz", type="source", repos=NULL)
When I do this I get the following error:
make: *** [C:/PROGRA~1/R/R-42~1.0/etc/x64/Makeconf:257: brownresnick.o] Error 1
ERROR: compilation failed for package 'RandomFields'
My installations are as follows:
Windows 10 Home, 64-bit
R version 4.2.0
R Studio 2022.07.2+576
Rtools42 for windows
Any idea how I can install georob and/or RandomFields?
Thank you very much!

Error while downloading "highcharter" package in r

I am trying to download "highcharter" but got the error below. I also tried installing "rjson" but I got "package ‘rjson’ is not available (for R version 3.6.3)" message
ERROR: dependency 'rjson' is not available for package 'highcharter'
* removing 'C:/Users/elif.gencaslan/Documents/R/win-library/3.6/highcharter'
Warning in install.packages :
installation of package ‘highcharter’ had non-zero exit status
The problem: Outdated R version
The latest version of rjson (0.2.21) depends on R version >= 4.0.0 (see CRAN), and it seems like you have R version 3.6.3.
Best solution: Update R
Your best option is to update your version of R before installing rjson or highcharter.
Alternatives: Install old version of rjson
An alternative is to install an older version of rjson (0.2.20 should work with your version of R).
You can either do this with packages like renv:
renv::install("rjson#0.2.20")
Or remotes:
remotes::install_version("rjson", "0.2.20")
Or you could download it and install it manually from this mran snapshot.

Install teradatasql for R 4.0.2

I try to install teradatasql as explained here:
https://github.com/Teradata/r-driver#Installation
However, it immediately throws this error:
install.packages('teradatasql',repos=c('https://teradata-download.s3.amazonaws.com','https://cloud.r-project.org'))
Installing package into ‘/home/ckiefer/RProjects/cki_new_db_interface/packrat/lib/x86_64-pc-linux-gnu/4.0.2’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository https://teradata-download.s3.amazonaws.com/src/contrib:
Line starting '<?xml version="1.0" ...' is malformed!
Warning message:
package ‘teradatasql’ is not available (for R version 4.0.2)
So, it cannot be installed for this version of R although it says that the package requires 64-bit R 3.4.3 or later?
Any help is appreciated.
BR, Christoph
Yes, the teradatasql installation should work okay with R 4.0.2. I just successfully tested it myself using R 4.0.2 for Windows.
Google found the following topic related to your error message:
https://community.rstudio.com/t/install-packages-unable-to-access-index-for-repository-try-disabling-secure-download-method-for-http/16578

Package ‘Rstem’ is not available (for R version 3.5.1)

I am trying to install the Rstem package, but I am getting the message that there is no version available for the version of R 3.5.1. I'm using the macOs El Captain.
The error is:
> install.packages('Rstem', repos = 'https://cran.r-project.org/src/contrib/Archive/Rstem/Rstem_0.4-1.tar.gz')
Installing package into ‘/Users/ls_rafael/Library/R/3.5/library’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository https://cran.r-project.org/src/contrib/Archive/Rstem/Rstem_0.4-1.tar.gz/src/contrib:
cannot open URL 'https://cran.r-project.org/src/contrib/Archive/Rstem/Rstem_0.4-1.tar.gz/src/contrib/PACKAGES'
Warning in install.packages :
package ‘Rstem’ is not available (for R version 3.5.1)
Warning in install.packages :
unable to access index for repository https://cran.r-project.org/src/contrib/Archive/Rstem/Rstem_0.4-1.tar.gz/bin/macosx/el-capitan/contrib/3.5:
cannot open URL 'https://cran.r-project.org/src/contrib/Archive/Rstem/Rstem_0.4-1.tar.gz/bin/macosx/el-capitan/contrib/3.5/PACKAGES'
I already tried the suggested options in this link issues in installing Rstem package and also downloading the package locally from the official website Rstem Package, but the result is also unsatisfactory.
I'm studying how to do an sentiment analysis with Twitter data. I would like to know if there is any alternative to this package or if there is any trick to install it.
RStem package has been removed from the CRAN repository. You can download using the following command:-
install.packages('Rstem', repos = "http://www.omegahat.net/R")
Make sure you have RTools installed on your machine. You can download it from this link -
Building R for Windows
RStem is now provided by OmegaHat.
Try the command below:
install.packages("Rstem", repos = "http://www.omegahat.net/R", type = "source")

R: package ‘arulesViz’ is not available (as a binary package for R version 3.1.3)

I'm a newcomer in R and studying Apriori algorithm now.
The problem is I can install the R package arules but when I want to install the package arulesViz, R is throwing an error message:
install.packages("arulesViz")
package ‘arulesViz’ is available as a source package but not as a binary
Warning in install.packages :
package ‘arulesViz’ is not available (as a binary package for R version 3.1.3)
I have read the article "How should I deal with “package 'xxx' is not available” warning?", but I still don't understand how to solve this problem.
If your OS is Microsoft Windows and you have Rtools (http://cran.revolutionanalytics.com/bin/windows/Rtools/) installed, then you can do the following:
install.packages("arulesViz", type = "source")

Resources