Installation error of slidifyLibraries from github - r

I installed slidify following instructions from here. I installed the windows binaries and started a slidify.rmd file successfully, but I could not install the slidifyLibraries, which makes the build crash. This is the error that follows:
* checking for file 'C:\Users\Roger\AppData\Local\Temp\RtmpYrHr6k\ramnathv-slidifyLibraries-8e8e781/DESCRIPTION' ... OK
* preparing 'slidifyLibraries':
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* building 'slidifyLibraries_0.1.tar.gz'
ERROR
packaging into .tar.gz failed
Error: Command failed (1)
In addition: Warning message:
running command '"C:/NEWPRO~1/R-215~1.2/bin/x64/R" --vanilla CMD build "C:\Users\Roger\AppData\Local\Temp\RtmpYrHr6k\ramnathv-slidifyLibraries-8e8e781" --no-manual --no-resave-data' had status 1
When installing Rtools I was directed to install them directly from cran, which I did. This is the session info:
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base
other attached packages:
[1] slidify_0.3.1
loaded via a namespace (and not attached):
[1] digest_0.6.0 evaluate_0.4.3 formatR_0.7
[4] knitr_0.9 markdown_0.5.3 stringr_0.6.2
[7] tools_2.15.2 whisker_0.1 yaml_2.1.5

Related

Installation failed: had non-zero exit status

I am trying to install the development version of "metafor" package using
remotes::install_github("wviechtb/metafor")
However, I have the following error message. I tried setting dependencies and force to TRUE with no success.
.
.
.
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
*** arch - i386
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Users/mihir/OneDrive/Dokumente/R/win-library/4.0/metafor'
* restoring previous 'C:/Users/mihir/OneDrive/Dokumente/R/win-library/4.0/metafor'
Error: Failed to install 'metafor' from GitHub:
(converted from warning) installation of package ‘C:/Users/mihir/AppData/Local/Temp/RtmpWcutv3/file121421b71d54/metafor_2.5-54.tar.gz’ had non-zero exit status.
` sessionInfo()`
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.0.3 tools_4.0.3

Cannot install RStudio addins on my Windows laptop from behind proxy

My session info (basically it's Microsoft R Open 3.4.1, RStudio 1.0.153, Windows 10 64 bit)
> sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils
[5] datasets methods base
other attached packages:
[1] RevoUtilsMath_10.0.1
loaded via a namespace (and not attached):
[1] httr_1.3.1 compiler_3.4.1
[3] R6_2.2.0 RevoUtils_10.0.6
[5] tools_3.4.1 withr_2.0.0
[7] curl_2.6 memoise_1.1.0
[9] git2r_0.19.0 digest_0.6.12
[11] devtools_1.13.3
I'm trying to install some RStudio addins without success. Whatever addin I try to install, the recommended procedure of using devtools::install_github (see Installation) fails with the same error message:
> devtools::install_github("benmarwick/wordcountaddin", type = "source", dependencies = TRUE)
Installation failed: Failure when receiving data from the peer
> devtools::install_github("rstudio/addinexamples", type = "source")
Installation failed: Failure when receiving data from the peer
I work behind a company proxy. I am able to install R packages from CRAN without problems:
> install.packages("devtools")
Installing package into ....
(as ‘lib’ is unspecified)
trying URL 'https://mran.microsoft.com/snapshot/2017-09-01/bin/windows/contrib/3.4/devtools_1.13.3.zip'
Content type 'application/zip' length 443758 bytes (433 KB)
downloaded 433 KB
package ‘devtools’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
....
How can I install RStudio addins?
You can install from github using proxy settings with httr package:
library(httr)
with_config(use_proxy(url='proxy url', port = port_number,
username="username", password="yourpass"),
devtools::install_github('github/directory'))

Cannot Install Caret

I've been looking at StackOverflow forums like this and this but I cannot find a problem.
What I'm having an issue with is that I cannot install the caret package because the dependencies cannot be installed. I even tried to run install.packages("caret", dependencies = T) and that failed. I have also tried install.packages("caret", dependencies = c("Depends", "Suggests")) and it failed on installing rPython dependencies.
There seems to be issues saying that there is a configuration script and that I need to manually configure it.
I tried installing car, lme4, and other dependencies manually but only ggplot2 was able to be installed correctly. I have no idea what else to do, below is my session Info. Please help!
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] codetools_0.2-14
loaded via a namespace (and not attached):
[1] tools_3.2.2 data.table_1.9.6 chron_2.3-47
did you try downloading the packages manually from CRAN and installing them manually from Rstudio? Some of the packages require rebooting the Rstudio after package installation or after package inclusion in the Rscript. That worked for me..
also, try installing different versions of the packages until one of them works for your case..that's what I did in the case of "ggvis package

Can not install shinyTable successfully

I followed the instruction on the Github. It returned me an error like this:
install_github("shinyTable", "trestletech")
Downloading github repo trestletech/shinyTable#master
Error in curl::curl_fetch_memory(url, handle = handle) :
Timeout was reached
In addition: Warning message:
Username parameter is deprecated. Please use trestletech/shinyTable
Then, I tried to download the repo zip file and installed the shinyTable from local zip file in R studio. After that, I library(shinyTable). It return me an error.
> install.packages("D:/UserData/xxxx/Downloads/shinyTable-master.zip", repos = NULL)
Installing package into ‘D:/UserData/xxxx/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
> library(shinyTable)
Error in library(shinyTable) : there is no package called ‘shinyTable’
This is sessionInfo() result:
R version 3.2.1 (2015-06-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] shinyRGL_0.1.0 devtools_1.8.0 rJava_0.9-7
loaded via a namespace (and not attached):
[1] rgl_0.95.1247 Rcpp_0.12.0 digest_0.6.8 mime_0.3 R6_2.1.0 xtable_1.7-4 git2r_0.10.1
[8] magrittr_1.5 httr_1.0.0 stringi_0.5-5 curl_0.9.2 xml2_0.1.1 tools_3.2.1 stringr_1.0.0
[15] shiny_0.12.2 httpuv_1.3.3 rversions_1.0.2 htmltools_0.2.6 tcltk_3.2.1 memoise_0.2.1
Does anyone know the reason and tell me how to install it? Thank you.
I had similar issues recently. Can you try this:
library(devtools)
install_git("https://github.com/trestletech/shinyTable")

Error loading "oligo" Bioconductor package

On Windows XP, After updating to R 2.15.3 and updating all libraries, I was no longer able to load the "oligo" package from BioConductor.
To recreate:
source("http://bioconductor.org/biocLite.R") #install the BioC installer
biocLite("oligo") #download and install the oligo package
library("oligo") #attempt to load
Gets the following error:
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-2.15.3/library/affxparser/libs/i386/affxparser.dll':
LoadLibrary failure: The specified procedure could not be found.
The file it mentions, "C:/Program Files/R/R-2.15.3/library/affxparser/libs/i386/affxparser.dll", is right where it's supposed to be.
sessionInfo() returns:
R version 2.15.3 (2013-03-01)
Platform: i386-w64-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] Biobase_2.18.0 oligoClasses_1.20.0 BiocGenerics_0.4.0
loaded via a namespace (and not attached):
[1] affyio_1.26.0 BiocInstaller_1.8.3 Biostrings_2.26.3
[4] bit_1.1-10 codetools_0.2-8 ff_2.2-11
[7] foreach_1.4.0 GenomicRanges_1.10.7 IRanges_1.16.6
[10] iterators_1.0.6 parallel_2.15.3 stats4_2.15.3
[13] tools_2.15.3 zlibbioc_1.4.0
.libPaths() returns:
[1] "C:/Program Files/R/R-2.15.3/library"
[2] "C:/Program Files/RStudio/R/library"

Resources