Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble installing R packages via rip.py #24

Closed
rmnppt opened this issue Jul 24, 2018 · 3 comments
Closed

Trouble installing R packages via rip.py #24

rmnppt opened this issue Jul 24, 2018 · 3 comments

Comments

@rmnppt
Copy link

rmnppt commented Jul 24, 2018

I am trying to install the following R packages by adding the following lines to packages.txt

dplyr
tidytext

When I subsequently compile and run the algorithm I get either:

Error: Failed to start algorithm - Loading required package: methods Error in library("tidytext") : there is no package called ‘tidytext’ Calls: source -> withVisible -> eval -> eval -> library Execution halted Failed to load: exited with code 1

or:

Error: Failed to start algorithm - Loading required package: methods Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : namespace ‘R6’ 2.2.0 is being loaded, but >= 2.2.2 is required Error: package or namespace load failed for ‘dplyr’ Execution halted Failed to load: exited with code 1

depending on which package I load first. I started to go through a combination of installations from the archives of those two packages (sometimes older versions installed and ran fine) but is there something in the workflow of build that would be breaking these installations?

@rmnppt
Copy link
Author

rmnppt commented Jul 24, 2018

Am I right in thinking that the contents of bin/ are non write-able for the algorithm developer?

@rmnppt rmnppt changed the title Trouble installing packages via rip.py Trouble installing R packages via rip.py Jul 24, 2018
@jamesatha
Copy link
Contributor

It looks like tidytext is the one causing the problem here. This is due to the fact that we are running an older version of R. We are actively working on upgrading R but that will be a while. In the meantime, this set of dependencies should allow you to use the two packages you need:

mnormt
foreign
reshape2
hunspell
tokenizers
janeaustenr
-t https://cran.r-project.org/src/contrib/R6_2.2.2.tar.gz
-t https://cran.r-project.org/src/contrib/Archive/nlme/nlme_3.1-131.tar.gz
-t https://cran.r-project.org/src/contrib/Archive/psych/psych_1.7.8.tar.gz
-t https://cran.r-project.org/src/contrib/Archive/broom/broom_0.4.3.tar.gz
-t https://cran.r-project.org/src/contrib/Archive/tidytext/tidytext_0.1.5.tar.gz
dplyr

@rmnppt
Copy link
Author

rmnppt commented Jul 25, 2018

Great thank you. That worked fine. I will close this one and open another regarding R versions.
Your help is much appreciated.

@rmnppt rmnppt closed this as completed Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants