Trying to install tm package in R but I get the following error.
Installing package into ‘C:/Users/resmim/Documents/R/win-library/3.2’ (as ‘lib’ is unspecified) also installing the dependency ‘slam’
Packages which are only available in source form, and may need compilation of C/C++/Fortran: ‘slam’ ‘tm’ These will not be installed
Type this in your console:
chooseCRANmirror()
And choose your CRAN Mirror. I like Spain :). Then try re-installing your package.
In addition to trying your luck with a few different mirrors, be sure to answer 'N' when asked 'Do you want to install from sources the package which needs compilation?' This solved the problem for me.
update r version to latest, it just worked for me.
to do this, download latest version of R from cran and install it. no uninstall required for previous versions.
Related
I have been using bizdays package for a long time and since I changed my window installation recently I had to install all of the packages for R. The only package that is not installed is bizdays. The documentations appear to show this package should be still on CRAN, but I cannot find it or install it. Is there any way to somehow install it back?
This is the error I am getting:
install.packages("bizdays")
Installing package into ‘C:/Users/me/OneDrive/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified)
So it seems the package got installed, and when I try to use it this is the error thrown:
library(bizdays)
Error in library(bizdays) : there is no package called ‘bizdays’
You may need to update R to =>4.0
You can check with R.version.
Needing to update R is a fairly common cause of package install problems, as packages can use new R features. You will need to restart RStudio
I'm trying to install Rattle and am having problems installing RGtk2. I am using R version 4.1, so there may be a version compatibility issue. However, I noticed that RStudio is installing packages into OneDrive:
Installing package into ‘C:/Users/tdwri/OneDrive/Documents/R/win-library/4.1’
but I am using R in C:\Program Files\R\R-4.1.2\
Question 1: how do I make sure packages are installed in C:\Program Files\R\R-4.1.2 instead of OneDrive?
Question 2: How do I install rattle when I am getting the error:
package ‘RGtk2’ is not available for this version of R.
Question 3:
If the solution to the second question involves downgrading the R version, how can I do that?
I apologize for asking 3 questions. I'm trying to get Rattle to work and these problems came up.
I found an answer to this at https://rattle.togaware.com/
LATEST NEWS: RGtk2 Retired From CRAN December 2021
RGtk2 appears to have been retired from CRAN. To install it from the Microsoft CRAN snapshots:
This worked to get RGtk2 and install rattle
install.packages("https://cran.microsoft.com/snapshot/2021-12-15/bin/windows/contrib/4.1/RGtk2_2.20.36.2.zip", repos=NULL)
This worked- in addition don't forget to find file move it and resave it in the file you need it in.
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/carar/OneDrive/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
This worked for me on Mac OS
From this link
https://cran.r-project.org/bin/macosx/
I Installed lower version of R
I installed rattle library
Upgraded my R to latest version and everything work fine
Rattle was archived on CRAN recently but after an update is being unarchived.
This may take a day or so.
In the meantime the following should work:
install.packages("rattle", repos="https://rattle.togaware.com", type="source")
I just checked and it worked for me.
Also RGtk2 has been archived on CRAN though the author indicates it is remains functional.
Yes, please follow the instructions at https://rattle.togaware.com to install RGtk2 from MRAN instead.
install.packages("https://cran.microsoft.com/snapshot/2021-12-15/src/contrib/RGtk2_2.20.36.2.tar.gz", repos=NULL)
I'm trying to use plot.ci function in the zelig library but apparently Zelig is not supported with R 4.0.2. I'm trying to see if there is a work around to access these functions or if I just can't use this library until they make the appropriate updates. Please help.
Ethan
Error message below:
> install.packages('zeligverse')
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/ethan/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘zeligverse’ is not available (for R version 4.0.2)
It looks like this package has been removed from CRAN's repository, meaning you can't install it like this anymore - you have to install it manually. This is explained on their website, and has download links for manual installation that have been archived:
https://cran.r-project.org/web/packages/zeligverse/index.html
You will also have to install the following dependencies (packages it requires) to install it correctly:
'Amelia', 'MatchIt', 'WhatIf', 'Zelig', 'ZeligChoice', 'ZeligEI'
The Zelig package that is currently available appears to support the function you mentioned. You can install it with:
install.packages("Zelig")
I am currently trying install a package from Bioconductor, I got the following message
BioC_mirror: http://bioconductor.org
Using Bioconductor version 2.14 (BiocInstaller 1.14.2), R version 3.1.0.
Installing package(s) 'minet'
package 'minet' is available as a source package but not as a binary
Warning message:
package 'minet' is not available (for R version 3.1.0)
The package is called "minet", avaliable at http://www.bioconductor.org/packages/release/bioc/html/minet.html
As #MartinMorgan points out, the package fails to build on Mavericks, and won't be available until the maintainer fixes it.
I have contacted the maintainer with a fix, so it should be resolved soon.
You can download the source code (probably tar.gz) and install it through your RStudio. This is a tutorial of what you could do:
http://outmodedbonsai.sourceforge.net/InstallingLocalRPackages.html
It's so simple, but I didn't get the answer so easily.
I am using R version 3.0.3.
I would like to install the package "imputation". I would like to re-run an analysis I used last year in R version 3.0.2.
I also have a new computer so I am re-installing my packages. I would like to install the package "imputation".
install.packages("imputation")
However, I received the following error:
Installing package into ‘\\oxdc/userdata/jolyon.faria/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘imputation’ is not available (for R version 3.0.3)
How can I work around this problem? I thought I could perhaps run two versions of R on the same computer but this may throw up its own problems.
Always check CRAN for package problems:
http://cran.r-project.org/web/packages/imputation/
You might be able to get it working on 3.0.3 or later by installing from source via the source archive.
Or contact the maintainer and ask them if they can fix the problem that caused the removal from CRAN.