dprat
October 15, 2020, 8:41am
1
Hi,
I saw several topics concerncing the installation of the package Rmarkdown but none of them answer my issue.
I need to install rmarkdown on a remote ubuntu machine from the terminal but it's not working and I don't know why, here the error:
install.packages("rmarkdown")
trying URL 'https://cran.biotools.fr/src/contrib/rmarkdown_2.4.tar.gz '
Content type 'application/x-gzip' length 3202546 bytes (3.1 MB)
==================================================
downloaded 3.1 MB
installing source package ‘rmarkdown’ ...
** package ‘rmarkdown’ successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in rbind(info, getNamespaceInfo(env, "S3methods")) :
number of columns of matrices must match (see arg 2)
ERROR: lazy loading failed for package ‘rmarkdown’
removing ‘/home/miniconda3/envs/py37/lib/R/library/rmarkdown’
The downloaded source packages are in
‘/tmp/Rtmpa99yBs/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("rmarkdown") :
installation of package ‘rmarkdown’ had non-zero exit status
Do you have any idea ?
I tried this solution but it didn't worked for me :
opened 10:22AM - 19 May 19 UTC
closed 02:59PM - 13 Jun 19 UTC
load library for "core-tidyverse-package" (i.e. tidyverse, ggplo2, dplyr, tidyr… , readr, purrr, tibble) except stringr and forcats" fails with matrices column not match error
---
Package load via library (...) or require (...) package or namespace load fails for the packages mentioned above; the same error is also encountered for devtools, haven, modelr.
For stringr, forcats (from tidyverse core) as well as blob, DBI, lubridate, readxl, rvest package loading via library() works fine
```r
library("tidyverse")#or ggplot2, dplyr, tidyr, readr, purrr, tibble, devtools, haven or modelr
Error: package or namespace load failed for 'tidyverse' in rbind(info, getNamespaceInfo(env, "S3methods")):
number of columns of matrices must match (see arg 2)
```
my sessionInfo() output
```r
>sessionInfo()
R version 3.5.3 (2019-03-11)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763)
Matrix products: default
locale:
[1] C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.5.3 fortunes_1.5-5
```
Versions listing for the mentioned packages
Failing packages:
- tidyverse 1.2.1
- ggplot2 3.1.1
- dplyr 0.8.1
- tidyr 0.8.3
- readr 1.3.1
- purrr 0.3.2
- tibble 2.1.1
- devtools 2.0.2
- haven 2.1.0
- modelr 0.1.4
- vroom 1.0.0
Working packages:
- stringr 1.4.0
- forcats 0.4.0
- blob 1.1.1
- DBI 1.0.0
- lubridate 1.7.4
- readxl 1.3.1
- rvest 0.3.4
Thanks !
Anaconda is a wonderful package manager for Python. For R, not so much. This forum is full of unresolved Anaconda installation of R package fails.
cderv
October 15, 2020, 12:40pm
3
I see indeed you are using R from Anaconda. This can create undesired effect when it comes to packages installation.
Some hints:
End at last, if you don't mind change it, you could use R without Anaconda and I guess you won't have this issue.
Hope it helps
1 Like
dprat
October 19, 2020, 10:25am
4
So you're recommanding to not use R with Anaconda, interesting.
When installing Anaconda, it's setting himself by default for R, python, etc. by modifying the .bash_profile file.
I need to modify this then.
Problem is that I think when you are in a virtual environment conda looks for R version of the environment (if I'm correct).
Anyway thanks for your advice
cderv
October 19, 2020, 1:15pm
5
I just know it works better and that there are some issue reported regarding R with Anaconda. But it should work. You can try the other methods of installation I posted.
If someone use R and do not benefit from feature linked to Anaconda or Conda, I would advice to use standard distribution of R without Anaconda stuff.
system
Closed
November 9, 2020, 1:15pm
6
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.