Unable to install R pmml package on Red Hat - r

Trying to install pmml package using R Studio on Red Hat. I get the following output:
================================================
downloaded 136 KB
* installing *source* package 'pmml' ...
** package 'pmml' successfully unpacked and MD5 sums checked
** R
** data
** inst
** preparing package for lazy loading
Error : object 'str_interp' is not exported by 'namespace:stringr'
ERROR: lazy loading failed for package ?pmml?
* removing '/usr/lib64/R/library/pmml'
Warning in install.packages :
installation of package 'pmml' had non-zero exit status

You have outdated stringr package. Install the new stringr package from CRAN with:
install.packages(c("stringr"))

Related

Error message when installing package expss

I'm trying to download the package 'expss' in R, but I get an error message that I don't know how to solve.
This is what R tells me after trying to install 'expss':
installing the source package ‘expss’
trying URL 'https://cran.rstudio.com/src/contrib/expss_0.11.2.tar.gz'
Content type 'application/x-gzip' length 5002788 bytes (4.8 MB)
==================================================
downloaded 4.8 MB
* installing *source* package ‘expss’ ...
** package ‘expss’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘expss’:
object 'mtfrm' not found whilst loading namespace 'expss'
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/expss’
Warning in install.packages :
installation of package ‘expss’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/86/04fdfqg9769g8w7ss25qnw600000gn/T/RtmpELbScA/downloaded_packages’
Any help appreciated!

Installation issue with nflscrapR package

Having issues downloading nflscrapR. Not sure if anyone else has this issue. Output from trying to install below:
Installing package into ‘C:/Users/cciar/OneDrive/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package 'nflscrapR' ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
Error: (converted from warning) package 'magrittr' was built under R version 3.6.3
Execution halted
ERROR: lazy loading failed for package 'nflscrapR'
* removing 'C:/Users/cciar/OneDrive/Documents/R/win-library/3.6/nflscrapR'
Error: Failed to install 'nflscrapR' from GitHub:
(converted from warning) installation of package ‘C:/Users/cciar/AppData/Local/Temp/Rtmp6diEQG/file5f042b671761/nflscrapR_1.8.3.tar.gz’ had non-zero exit status

viridis ggplot2 color package won't install , even with dependencies = TRUE

I boot up a clean instance of R Studio. I don't save my environments and I don't use an Rprofile file. I tried both commands:
install.packages("viridis")
install.packages("viridis", dependencies = TRUE)
and I get this error:
installing source package ‘viridis’ ...
** package ‘viridis’ successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading Error : object ‘cividis’ is not exported by 'namespace:viridisLite' ERROR: lazy loading failed for
package ‘viridis’
removing ‘/home/stackinator/Rlibs/viridis’ Warning in install.packages : installation of package ‘viridis’ had non-zero exit status
Try the following:
if (!require("devtools")) install.packages("devtools")
devtools::install_github("sjmgarnier/viridis")
I am not sure why downloading it from CRAN didn't work, but devtools::install_github() downloads the source package from the repository rather than the bundled package that you get from CRAN with install.packages()
For more, check out this discussion from R Packages book:
http://r-pkgs.had.co.nz/package.html

Cannot load ggmap package successfully in case of dashDB / R

I tried to develop hands-on materials for R with dashDB.
I want to use ggmap package to work with geospatial data, so I typed "install.packages("ggmap")" on RStudio provided by Bluemix.
I got the following result. I found the pre-installed package "ggplot" was older than that ggmap required.
install.packages("ggmap")
:
Loading required package: rpart
Loading required package: rpart.plot
Loading required package: ggplot2
* installing *source* package ‘ggmap’ ...
** package ‘ggmap’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error : package ‘ggplot2’ 1.0.1 is loaded, but >= 2.0.0 is required by ‘ggmap’
ERROR: lazy loading failed for package ‘ggmap’
* removing ‘/mnt/blumeta0/home/dash101482/R/x86_64-redhat-linux-gnu-library/3.2/ggmap’
Warning in install.packages :
installation of package ‘ggmap’ had non-zero exit status
The downloaded source packages are in
‘/tmp/Rtmps0c2yk/downloaded_packages’
Cloud anyone please tell me how to solve or avoid this error?

Installation of R package (tar.gz) in windows

I have a serious problem about R package installation in windows where I haven't got the administrator priveleges. For example, to install ggplot2 I did :
install.packages("C:/Users/Rasengan/Downloads/ggplot2_1.0.0.tar.gz", repos = NULL, type="source")
I get this error message :
ERROR: dependencies 'plyr', 'gtable', 'reshape2', 'scales', 'proto' are not available for package 'ggplot2'
* removing 'C:/Program Files/R/R-3.1.1/library/ggplot2'
Warning messages:
1: running command '"C:/PROGRA~1/R/R-31~1.1/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.1.1\library" "C:/Users/Rasengan/Downloads/ggplot2_1.0.0.tar.gz"' had status 1
2: In install.packages("C:/Users/Rasengan/Downloads/ggplot2_1.0.0.tar.gz", :
installation of package ‘C:/Users/Rasengan/Downloads/ggplot2_1.0.0.tar.gz’ had non-zero exit status
So the problem come from the pakage which depends ggplot2, what I tried is to install the different packages ('plyr', 'gtable', 'reshape2', 'scales', 'proto') one by one but the process is endless because 'plyr' depended of many or packages ...
Please could you help me, because I need shiny, ggplot2 and rCharts for my work.
Thank you in advance!
PS: the proto package doesn't depend of an other package, so I installed it easly :
> install.packages("C:/Users/Rasengan/Downloads/proto_0.3-10.tar.gz", repos = NULL, type="source")
* installing *source* package 'proto' ...
** package 'proto' successfully unpacked and MD5 sums checked
** R
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
'proto.Rnw'
'protoref.Rnw'
** testing if installed package can be loaded
* DONE (proto)

Resources