I'm trying to install rspatial package using:
if (!require("rspatial")) devtools::install_github('rspatial/rspatial')
but I received below error:
Error: Failed to install 'rspatial' from GitHub:
(converted from warning) installation of package ‘C:/Users/A02243~1/AppData/Local/Temp/Rtmpgx3SZq/file16441e95c6/rspatial_1.0-0.tar.gz’ had non-zero exit status
In addition: Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘rspatial’
Also, I used:
install.packages("rspatial")
and I received below warning
Warning in install.packages :
package ‘rspatial’ is not available (for R version 3.5.2)
Is there any other ways that will install rspatial on R version 3.5.2?
Thanks.
3.5.2 has some issues with devtools - try updating processx package and see if that resolves the issue.
Related
I'm using the following code to install the baseballr package from GitHub:
require(devtools)
install_github("BillPetti/baseballr")
require(baseballr)
However, I keep getting the following error when running require(baseballr):
Loading required package: baseballr
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘baseballr’
Also, when I run install_github("BillPetti/baseballr"), I get the following error:
package ‘glue’ successfully unpacked and MD5 sums checked
Error: (converted from warning) cannot remove prior installation of package ‘glue’
In addition: Warning messages:
1: In untar2(tarfile, files, list, exdir) :
skipping pax global extended headers
2: In untar2(tarfile, files, list, exdir) :
skipping pax global extended headers
devtools is properly installed but I'm just not sure why baseballr won't properly install. The documentation for the package can be found here.
I am using R on jupyter notebook
I am trying to learn some commands
I install the package as in
install.packages('faraway', repos='http://cran.us.r-project.org')
The outcome was
also installing the dependencies 'minqa', 'nloptr', 'RcppEigen', 'lme4'
Warning message in install.packages("faraway", repos = "http://cran.us.r-project.org"):
"installation of package 'minqa' had non-zero exit status"
Warning message in install.packages("faraway", repos = "http://cran.us.r-project.org"):
"installation of package 'nloptr' had non-zero exit status"
Warning message in install.packages("faraway", repos = "http://cran.us.r-project.org"):
"installation of package 'RcppEigen' had non-zero exit status"
Warning message in install.packages("faraway", repos = "http://cran.us.r-project.org"):
"installation of package 'lme4' had non-zero exit status"
Warning message in install.packages("faraway", repos = "http://cran.us.r-project.org"):
"installation of package 'faraway' had non-zero exit status"
Updating HTML index of packages in '.Library' Making 'packages.html' ... done
In the terminal I got that
ERROR: dependency ‘lme4’ is not available for package ‘faraway’
* removing ‘/anaconda3/lib/R/library/faraway’
The downloaded source packages are in
‘/private/var/folders/sk/ls5hgt056k72k2yxpm01jct00000gn/T/RtmpZijWPV/downloaded_packages’
[I 07:36:55.974 LabApp] Saving file at /4/Untitled1.ipynb
[E 07:36:55.984 LabApp] Notebook JSON is invalid: Additional properties are not allowed ('execution_count' was unexpected)
Failed validating 'additionalProperties' in error:
On instance['cells'][7]['outputs'][0]:
{'ename': 'ERROR',
'evalue': 'Error in library("minqa"): there is no package called ‘minqa’\n',
'execution_count': 3,
'output_type': 'error',
'traceback': ['Error in library("minqa"): there is no package called '
'‘minqa’\n'
'Tr...',
'1. library("minqa")',
'2. stop(txt, domain = NA)']}
then afterwards
require('faraway')
The outcome was
Loading required package: faraway Warning message in library(package,
lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
“there is no package called ‘faraway’”
also if I command
library('faraway')
Error in library("faraway"): there is no package called ‘faraway’
Traceback:
Is there any advice on this? Thank you
Your first line of code worked for me
install.packages('faraway', repos='http://cran.us.r-project.org')
try this:
conda install -c conda-forge r-faraway
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...
When executing filter(cran, package == "swirl"), I'm running into the following error. After the error occurs, if I try to run the code again, RStudio freezes.
Error in filter_imp(.data, quo) : function 'bindrcpp_rcppExport_validate' not provided by package 'bindrcpp'
In addition: Warning message: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘bind rcpp’
The solutions I've tried:
1) dplyr:filter(cran, package == "swirl") to makes sure I'm using the dplyr filter and not the stat filter.
2) install the bindr package and the bindrcpp package.
One potential issue is that when I load the bindrcpp package after installing it, it says
Error in library(bindrcpp) : there is no package called ‘bindrcpp’
Thank you for your help!
I am trying to build a Bayesian network model. However I am unable to install a suitable package. Tried gRain, bnlearn and Rgraphviz for plotting. I have tried in R 2.15 and 3.2
Following are the error messages :
library(gRain)
Loading required package: gRbase
Loading required package: graph
Error: package ‘graph’ could not be loaded
In addition: Warning message:
In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) :
there is no package called ‘graph’
> install.packages("graph")
Warning message:
package ‘graph’ is not available (for R version 2.15.3)
Same for R 3.2.1
> install.packages("graph")
(as ‘lib’ is unspecified)
Warning message:
package ‘graph’ is not available (for R version 3.2.1)
> install.packages("Rgraphviz")
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning messages:
1: In open.connection(con, "r") : unable to resolve 'cran.r-project.org'
2: package ‘Rgraphviz’ is not available (for R version 3.2.1)
> install.packages("Rgraphviz")
(as ‘lib’ is unspecified)
Warning message:
package ‘Rgraphviz’ is not available (for R version 2.15.3)
Other info for the model
1) No of variables - 17
2) Type of variables - discrete/continuous
The packagesgraph, RBGL and Rgraphviz are not on CRAN but on bioconductor.
To install these packages, execute
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install(c("graph", "RBGL", "Rgraphviz"))
Then install the packages from CRAN in the usual way:
install.packages("gRain", dependencies=TRUE)
See also the gRain installation instructions.
For R version 3.5 or greater, you can install Bioconductor packages using BiocManager.
Please see: https://bioconductor.org/install.
I installed them using the following code:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install(version = "3.10")
BiocManager::install(c("gRbase", "RBGL", "Rgraphviz", "gRain"))