I read some online documentation to install the SASXport and it said to install the package from the below website https://cran.r-project.org/src/contrib/Archive/SASxport
I used the latest SASxport_1.7.0.tar.gz version of it and i could not install the package SASxport. when i do so i get the below message which removes the SASxport package and when i call the library(SASxport) it says, there is no package called ‘SASxport’.
Could you please help me with this, like how to install this package?
Related
I'm trying to install the semPLS package on my new MacBook but I get the error:
install.packages("semPLS")
Warning in install.packages :
package 'semPLS' is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
My RStudio is Version R Studio-2022.02.1 Build 461
I've also tried using the earlier version of R 0.99.486 but still have the same problem.
I've used this quite often in the past. It is only when I tried to install the package on my new laptop, that I can't.
I tried looking for the package on cran and cannot find it there. Any advice on how I can locate and install semPLS?
You can install it using the function install_github() from package "devtools"
install devtools:
install.packages("devtools")
library(devtools)
install semPLS:
install_github("cran/semPLS")
I'm not able to install the IntroCompFinR package in RStudio due to this error:
> install.packages("IntroCompFinR")
Installing package into ‘C:/Users/HP/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘IntroCompFinR’ is not available (for R version 3.6.1)
Try the R-Forge repo?
install.packages("IntroCompFinR", repos="http://R-Forge.R-project.org")
You may also have to install quadprog from another repo first.
install.packages("quadprog", repos="http://cran.rstudio.com")
install.packages("IntroCompFinR", repos="http://R-Forge.R-project.org")
install.packages("package_name") from devtools library works only when the package is enlisted in CRAN, and complies with your R version.
Three alternatives if it is available, but either not in CRAN or not compatible with your R version:
Install via Github: If your package is incorporated in a Github repository (most packages are), then you can use
install_github("github_UsernameOfAuthor/repository_name")
Other prominent repository holders include bitbucket and gitorious, for which
install_bitbucket("package_Author/repository_name")
and
install_gitorious("package_Author/repository_name")
apply respectively.
Install via R-Forge: If your repository is uploaded to R-Forge, you can use
install.packages("package_name", repos="http://R-Forge.R-project.org")
This is applicable in your case since there is an R-Forge repository for the IntroCompFinR library, with the install command being mentioned here as well.
Install via some other source URL/website: If your package has a repository somewhere on the internet, you can use the source-link to install the package via
install.packages("package_name", repos="URL")`.
Note: All of these commands are provided by devtools, which you seem to have, but just in case you don't, you can use these commands to install both devtools and your required package:
# Install directly from CRAN:
if(!require(devtools))install.packages("devtools")
devtools::install.packages("package_name")
# Install via Github:
if(!require(devtools))install.packages("devtools")
devtools::install_github("githubAuthor_username/package_name")
# Install via R-Forge or any other repository holding website:
if(!require(devtools))install.packages("devtools")
devtools::install.packages("package_name",repos="website-link")
Most package authors give installation commands in their package vignette or via their Github repository for the same, but you can acquire the package directly provided you know its name and link to the source repository.
You can use this post as a reference when installing R packages in the future.
I am trying to install mvpart and MVPARTwrap packages in R version 3.6.1.
I install on my PC the folder of these two packages in zip version and load them in the relative folder of the package.
When I run the script library(mvpart) I get this message:
ERROR: 'mvpart' package was built before R 3.0.0: please reinstall it."
I try to load this library in the old version of R (version 2.15) and the message is
in install.packages (mvpart): object 'mvpart' not found".
I do not understand why it is impossible to load this package. Thanks so much.
Maybe the answer is no more relevant, but I just had to install those libraries so maybe it will still help someone later. I suggest the install from github as it will install dependencies, you need however to be able to compile the source. So here we go :
first install rtools if it is not already installed go here and follow the instruction
update/install devtools if necessary as described here
using this command, it should work now. you may be asked to update some packages, accept all
devtools::install_github("cran/mvpart")
I tried to install ROracle package in R. But unable to install the package. It is giving me the following error:
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘ROracle’
These will not be installed
Any idea how to fix it?
When I attempted to install the ROracle package from CRAN, I received the same error message. To fix it, I found that I needed to install the ROracle package located on the Oracle.com website. You'll need to sign up a free account first, and then you can find it by searching for "ROracle".
This package can be downloaded and installed error-free. It worked perfectly for me.
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.