I am New to R programming. I am using R studio presently. I received the following error while installing the tidyverse package
Installing package into ‘C:/Users/mandava/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/tidyverse_1.1.1.zip'
Content type 'application/zip' length 41908 bytes (40 KB)
downloaded 40 KB
package ‘tidyverse’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\mandava\AppData\Local\Temp\RtmpGw5Iny\downloaded_packages
My details :
> sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 (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
[6] methods base
loaded via a namespace (and not attached):
[1] tools_3.3.2
Don't worry about the error, the package is installed.
Related
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
I'm working in RStudio with R version 3.5.1.
Originally I tried installing the ChemmineR package using the following line of code.
>BiocManager::install("ChemmineR")
This ended up hanging so I had to stop the process and close out of RStudio.
I tried again, and now it is consistently hanging after the following step.
trying URL 'https://bioconductor.org/packages/3.7/bioc/bin/windows/contrib/3.5/ChemmineR_3.32.1.zip'
Content type 'application/zip' length 2593605 bytes (2.5 MB)
downloaded 2.5 MB
Does anyone have any advice?
I would suggest skipping BiocManager package and just use biocLite():
> biocLite("ChemmineR")
> library('ChemmineR')
> packageVersion("ChemmineR")
[1] ‘2.30.2’
EDIT:
I re-read this question and realized you were on Windows and using a different version of R and a later version of ChemmineR. I re-tested this code and it still works:
R> biocLite("ChemmineR")
R> library("ChemmineR")
R> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ChemmineR_3.32.1 BiocInstaller_1.30.0
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'))
I am trying to install the Gains package in R Studio Version 3.1.2 like this:
install.packages("gains")
The following warnings appear:
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.1
Warning in install.packages :package ‘gains’ is not available (for R version 3.1.2)
Does anyone know how can I fix this?
Thanks!
I believe that the problem lies in your corrupted, incomplete or otherwise incorrect R environment. I was able to install that package without any problems at all just by issuing the default command:
> install.packages("gains")
Installing package into ‘C:/Users/Alex/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/gains_1.1.zip'
Content type 'application/zip' length 35802 bytes (34 Kb)
opened URL
downloaded 34 Kb
package ‘gains’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Alex\AppData\Local\Temp\RtmpSSRths\downloaded_packages
> sessionInfo()
R version 3.1.1 (2014-07-10)
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 methods
[7] base
loaded via a namespace (and not attached):
[1] tools_3.1.1
As a quick solution to the problem, I suggest to specify CRAN mirror explicitly:
install.packages("gains", repos = "http://cran.rstudio.com")
I want to read more details about the new function in data.table v 1.8.11, after reading the link
I tried ?melt.data.table as pointed in the above link.
But there's no documents..
No documentation for melt.data.table?in specified packages and libraries:
you could try ??melt.data.table?
Here's my sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] data.table_1.8.11
Did I miss something?
EDIT On Jan20 2014
** Problems Still Not Solved**
I tried unistalled the data.table and deleted the library directory.
And then installed using the precompiled for windows in this link
> install.packages("~/Downloads/data.table_1.8.11.zip", repos = NULL)
Warning in install.packages :
package 憕/Downloads/data.table_1.8.11.zip?is not available (for R version 3.0.2)
Installing package into 慍:/Users/James/R/win-library/3.0?(as 憀ib?is unspecified)
package 慸ata.table?successfully unpacked and MD5 sums checked
The sessionInfo() is the same after reinstalling, and I put all the information here.
Still the ?melt.data.table not working.
[Edit by Matt] In turns out the data.table homepage was misleading (now fixed) and the Windows .zip on that page was 5 months old.
The correct way to install from R-Forge is
install.packages("data.table", repos="http://R-Forge.R-project.org").
Then the problem is solved and the documentation for ?melt.data.table is available.
Sorry this belongs in a comment but it's too long...
You might want to try re-installing data.table 1.8.11 (I found it here). When I do that, then start a new R session and:
library(data.table)
# data.table 1.8.11 For help type: help("data.table")
sessionInfo()
# R version 3.0.2 (2013-09-25)
# Platform: x86_64-w64-mingw32/x64 (64-bit)
#
# locale:
# [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
# [4] LC_NUMERIC=C LC_TIME=English_United States.1252
#
# attached base packages:
# [1] stats graphics grDevices utils datasets methods base
#
# other attached packages:
# [1] data.table_1.8.11
#
# loaded via a namespace (and not attached):
# [1] plyr_1.8 reshape2_1.2.2 stringr_0.6.2 tools_3.0.2
Note the bit at the end. It looks like data.table 1.8.11 loads reshape2, which probably contains melt.data.table(...). Did you truncate your sessionInfo, or were they not loaded?