rpremraj / mailR

A utility to send emails from the R programming environment
http://rpremraj.github.io/mailR/
190 stars 57 forks source link

Cannot install package on R 3.4 #61

Closed joel23888 closed 7 years ago

joel23888 commented 7 years ago

I am having difficulty installing mailR on R 3.4. Details below. I am following your instructions at https://github.com/rpremraj/mailR.

Session info:

> sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux Server release 6.5 (Santiago)

Matrix products: default
BLAS: /usr/share/R-3.4.0/packages/R_new/lib64/R/lib/libRblas.so
LAPACK: /usr/share/R-3.4.0/packages/R_new/lib64/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_3.4.0

Tried installing from Github:

> library(devtools)
> install_github("rpremraj/mailR")
Downloading GitHub repo rpremraj/mailR@master
from URL https://api.github.com/repos/rpremraj/mailR/zipball/master
Installing mailR
'/usr/share/R-3.4.0/packages/R_new/lib64/R/bin/R' --no-site-file --no-environ  \
  --no-save --no-restore --quiet CMD INSTALL  \
  '/tmp/RtmpQcB28E/devtools285f4e940cae/rpremraj-mailR-4c119d0'  \
  --library='/home/myuserid/R/x86_64-pc-linux-gnu-library/3.4'  \
  --install-tests

* installing *source* package ‘mailR’ ...
** R
** inst
** preparing package for lazy loading
Warning: S3 methods ‘clone.default’, ‘with.jobjRef’, ‘with.jarrayRef’, ‘with.jclassName’, ‘within.jobjRef’, ‘within.jarrayRef’, ‘within.jclassName’, ‘.DollarNames.jobjRef’, ‘.DollarNames.jarrayRef’, ‘.DollarNames.jrectRef’, ‘.DollarNames.jclassName’, ‘as.list.jobjRef’, ‘as.list.jarrayRef’, ‘as.list.jrectRef’, ‘$.Throwable’, ‘$<-.Throwable’ were declared in NAMESPACE but not found
Error in namespaceExport(ns, exports) :
  undefined exports: J, %instanceof%, clone, is.jnull, .r2j, .rJava.base.path, toJava, with.jobjRef, javaImport
ERROR: lazy loading failed for package ‘mailR’
* removing ‘/home/myuserid/R/x86_64-pc-linux-gnu-library/3.4/mailR’
* restoring previous ‘/home/myuserid/R/x86_64-pc-linux-gnu-library/3.4/mailR’
Error: Command failed (1)

I also tried from CRAN using your instructions (install.packages("mailR", dep = T)) but got the same error.

joel23888 commented 7 years ago

I also ran R CMD javareconf without any issues, and now I am getting a segfault when trying to install into clean R 3.4:

* installing *source* package ‘mailR’ ...
** package ‘mailR’ successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
sh: line 1:  6347 Segmentation fault      '/usr/share/R-3.4.0/packages/R_new/lib64/R/bin/R' --no-save --slave 2>&1 < '/tmp/RtmplLWhi3/file18c87e4302a'
ERROR: loading failed
kush99993s commented 7 years ago

I am getting same error

Segmentation fault (core dumped)
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/mailR’
Installation failed: Command failed (1)
JesseYANK commented 7 years ago

I also got segmentation fault error.

joel23888 commented 7 years ago

I also tested this under R 3.4.1 and having the same issue.

joel23888 commented 7 years ago

I managed to find a solution to this at: https://stackoverflow.com/questions/44682540/rjava-dependent-package-installation-segmentation-fault-core-dumped