R: How to install tiff package on OS X El Capitan -


i trying install r tiff package on mac os x el capitan homebrew installation of r. used post r: how install package tiff on mac os x mavericks? follow suggestions.

r-version:

> version                _                            platform       x86_64-apple-darwin15.0.0    arch           x86_64                       os             darwin15.0.0                 system         x86_64, darwin15.0.0         status                                      major          3                            minor          2.2                          year           2015                         month          08                           day            14                           svn rev        69053                        language       r                            version.string r version 3.2.2 (2015-08-14) nickname       fire safety  > install.packages("tiff", type="source")  installing package '/usr/local/lib/r/3.2/site-library' (as 'lib' unspecified)   % total    % received % xferd  average speed   time    time     time  current                                  dload  upload   total   spent    left  speed   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100 28925  100 28925    0     0   168k      0 --:--:-- --:--:-- --:--:--  168k * installing *source* package ‘tiff’ ... ** package ‘tiff’ unpacked , md5 sums checked ** libs clang -i/usr/local/cellar/r/3.2.2_1/r.framework/resources/include -dndebug  -i/usr/local/opt/gettext/include -i/usr/local/opt/readline/include -i/usr/local/opt/openssl/include    -fpic  -i/usr/local/opt/libtiff/include -c common.c -o common.o common.c:121:16: warning: comparison of unsigned expression < 0 false [-wtautological-compare]     if (offset < 0 || offset > rj->len) {         ~~~~~~ ^ ~ 1 warning generated. clang -i/usr/local/cellar/r/3.2.2_1/r.framework/resources/include -dndebug  -i/usr/local/opt/gettext/include -i/usr/local/opt/readline/include -i/usr/local/opt/openssl/include    -fpic  -i/usr/local/opt/libtiff/include -c read.c -o read.o clang -i/usr/local/cellar/r/3.2.2_1/r.framework/resources/include -dndebug  -i/usr/local/opt/gettext/include -i/usr/local/opt/readline/include -i/usr/local/opt/openssl/include    -fpic  -i/usr/local/opt/libtiff/include -c write.c -o write.o clang -dynamiclib -wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -l/usr/local/cellar/r/3.2.2_1/r.framework/resources/lib -l/usr/local/opt/gettext/lib -l/usr/local/opt/readline/lib -l/usr/local/opt/openssl/lib -o tiff.so common.o read.o write.o -l/usr/local/opt/gettext/lib -f/usr/local/cellar/r/3.2.2_1/r.framework/.. -framework r -lintl -wl,-framework -wl,corefoundation installing /usr/local/lib/r/3.2/site-library/tiff/libs ** r ** inst ** preparing package lazy loading ** *** installing indices ** building package indices ** testing if installed package can loaded error in dyn.load(file, dllpath = dllpath, ...) :    unable load shared object '/usr/local/lib/r/3.2/site-library/tiff/libs/tiff.so':   dlopen(/usr/local/lib/r/3.2/site-library/tiff/libs/tiff.so, 6): symbol not found: _tiffclientopen   referenced from: /usr/local/lib/r/3.2/site-library/tiff/libs/tiff.so   expected in: flat namespace  in /usr/local/lib/r/3.2/site-library/tiff/libs/tiff.so error: loading failed execution halted error: loading failed * removing ‘/usr/local/lib/r/3.2/site-library/tiff’ warning in install.packages :   installation of package 'tiff' had non-zero exit status  downloaded source packages in     '/private/var/folders/g8/rqv40nhs3zqcntnz_9t9l60w0000gr/t/rtmpjyhafp/downloaded_packages'       

initially, getting error 'tiff.h' file not found. so, modified ~/.r/makevars include lines:

cflags=-i/usr/local/opt/libtiff/include #ldflags=-l/usr/local/opt/libtiff/lib -llibtiff -llibtiffxx ldflags=-l/usr/local/opt/libtiff/lib -llibtiff.5 -llibtiffxx.5 

the install able find tiff.h can't find right libs after tried different ldflags -l specs based on files located in /usr/local/opt/libtiff/lib directory.

brew install libtiff: warning: libtiff-4.0.6 installed 

edit:

> devtools::session_info() session info -------------------------------------------------------------  setting  value                         version  r version 3.2.2 (2015-08-14)  system   x86_64, darwin15.0.0          ui       rstudio (0.99.489)            language (en)                          collate  c                             tz       america/new_york              date     2016-01-07                    packages -----------------------------------------------------------------  package       * version date       source          biocinstaller * 1.20.1  2016-01-07 bioconductor    dbi           * 0.3.1   2014-09-24 cran (r 3.2.2)  mass            7.3-45  2015-11-10 cran (r 3.2.2)  matrix        * 1.2-3   2015-11-28 cran (r 3.2.2)  matrixmodels    0.4-1   2015-08-22 cran (r 3.2.2)  r6              2.1.1   2015-08-19 cran (r 3.2.2)  rcolorbrewer    1.1-2   2014-12-07 cran (r 3.2.2)  rsqlite       * 1.0.0   2014-10-25 cran (r 3.2.2)  rcpp            0.12.2  2015-11-15 cran (r 3.2.2)  sparsem         1.7     2015-08-15 cran (r 3.2.2)  assertthat      0.1     2013-12-06 cran (r 3.2.2)  car             2.1-1   2015-12-14 cran (r 3.2.2)  caret         * 6.0-62  2015-11-23 cran (r 3.2.2)  chron           2.3-47  2015-06-24 cran (r 3.2.2)  codetools       0.2-14  2015-07-15 cran (r 3.2.2)  colorspace      1.2-6   2015-03-11 cran (r 3.2.2)  devtools        1.9.1   2015-09-11 cran (r 3.2.2)  digest          0.6.8   2014-12-31 cran (r 3.2.2)  doby          * 4.5-14  2015-12-29 cran (r 3.2.2)  domc          * 1.3.4   2015-10-13 cran (r 3.2.2)  dplyr         * 0.4.3   2015-09-01 cran (r 3.2.2)  foreach       * 1.4.3   2015-10-13 cran (r 3.2.2)  formatr         1.2.1   2015-09-18 cran (r 3.2.2)  gdata         * 2.17.0  2015-07-04 cran (r 3.2.2)  ggplot2       * 2.0.0   2015-12-18 cran (r 3.2.2)  glmnet        * 2.0-2   2015-04-12 cran (r 3.2.2)  gsubfn        * 0.6-6   2014-08-27 cran (r 3.2.2)  gtable          0.1.2   2012-12-05 cran (r 3.2.2)  gtools          3.5.0   2015-05-29 cran (r 3.2.2)  htmltools       0.3     2015-12-29 cran (r 3.2.2)  iterators     * 1.0.8   2015-10-13 cran (r 3.2.2)  knitr           1.11    2015-08-14 cran (r 3.2.2)  labeling        0.3     2014-08-23 cran (r 3.2.2)  lattice       * 0.20-33 2015-07-14 cran (r 3.2.2)  lazyeval      * 0.1.10  2015-01-02 cran (r 3.2.2)  lme4            1.1-10  2015-10-06 cran (r 3.2.2)  lpsolve         5.6.13  2015-09-19 cran (r 3.2.2)  magrittr        1.5     2014-11-22 cran (r 3.2.2)  memoise         0.2.1   2014-04-22 cran (r 3.2.2)  mgcv            1.8-10  2015-12-12 cran (r 3.2.2)  minqa           1.2.4   2014-10-09 cran (r 3.2.2)  munsell         0.4.2   2013-07-11 cran (r 3.2.2)  nlme            3.1-122 2015-08-19 cran (r 3.2.2)  nloptr          1.0.4   2014-08-04 cran (r 3.2.2)  nnet          * 7.3-11  2015-08-30 cran (r 3.2.2)  pbkrtest        0.4-4   2015-12-12 cran (r 3.2.2)  plyr          * 1.8.3   2015-06-12 cran (r 3.2.2)  proto         * 0.3-10  2012-12-22 cran (r 3.2.2)  quantreg        5.19    2015-08-31 cran (r 3.2.2)  reshape2      * 1.4.1   2014-12-06 cran (r 3.2.2)  rmarkdown       0.9.2   2016-01-01 cran (r 3.2.2)  rpart         * 4.1-10  2015-06-29 cran (r 3.2.2)  rpart.plot    * 1.5.3   2015-10-01 cran (r 3.2.2)  sampling      * 2.7     2015-07-01 cran (r 3.2.2)  scales          0.3.0   2015-08-25 cran (r 3.2.2)  sqldf         * 0.4-10  2014-11-07 cran (r 3.2.2)  stringi         1.0-1   2015-10-22 cran (r 3.2.2)  stringr       * 1.0.0   2015-04-30 cran (r 3.2.2)  survival      * 2.38-3  2015-07-02 cran (r 3.2.2)  tidyr         * 0.3.1   2015-09-10 cran (r 3.2.2)  yaml            2.1.13  2014-06-12 cran (r 3.2.2) 

anything else can try ?

thanks in advance


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -