tomwenseleers / export

R package for streamlined export of graphs and data tables.
192 stars 35 forks source link

Problems when installing #10

Closed DeLaRiva closed 5 years ago

DeLaRiva commented 6 years ago

Hi,

at first thanks a lot for the package. I actually try to install it but it fails:

devtools::install_github("tomwenseleers/export") (...) R tests preparing package for lazy loading help * installing help indices building package indices ** testing if installed package can be loaded

  • DONE (scales) '/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \ '/tmp/RtmpJAPGjG/devtools183d334284a3/tomwenseleers-export-e1aaccb' --library='/home/user/R/x86_64-pc-linux-gnu-library/3.4' \ --install-tests

ERROR: dependencies ‘ReporteRs’, ‘rtable’, ‘ggthemes’ are not available for package ‘export’

  • removing ‘/home/user/R/x86_64-pc-linux-gnu-library/3.4/export’ Installation failed: Command failed (1)

Can you please give me an advice?

edit: I've noticed that there already happened a problem when installing java:

configure: error: Java interpreter '/usr/lib/jvm/default-java/jre/bin/java' does not work ERROR: configuration failed for package ‘rJava’

tomwenseleers commented 6 years ago

You need to install JAVA 64bit first from https://java.com/en/download/manual.jsp. And any complaints about missing packages during install of the export package should be solved just by installing those missing packages first.

TillF commented 6 years ago

In my case, packages tidyr and crosstalk were not found. What about adding the dependencies to the description file? This would probably enable solving these dependencies autoamatically during installation.

tomwenseleers commented 5 years ago

Could you test if https://www.dropbox.com/s/6ikfcq2xobcuezu/export_0.2.2.zip?dl=1 installs any better for you? (source code here: https://www.dropbox.com/s/9re7kjtnjj6tjqd/export_0.2.2.tar.gz?dl=1). It's now using the officer package, so is no longer reliant on JAVA... Once it's on CRAN those dependent packages should install automatically - I will get to this soon...

TillF commented 5 years ago

I installed the binary, which went smoothly. On loading the package, I got complaints about missing packages flextable, rvg, stargazer, rgl After installing them (and their dependencies) manually, installation seemed to be complete.

tomwenseleers commented 5 years ago

Thanks for mentioning this, these dependencies should install automatically as soon as the package is on CRAN.