dahtah / imager

R package for image processing
GNU Lesser General Public License v3.0
187 stars 43 forks source link

Succeed to install but fail to library imager #79

Closed JiaxiangBU closed 5 years ago

JiaxiangBU commented 5 years ago
install.packages("imager")
#> 
#> The downloaded binary packages are in
#>  /var/folders/yt/307v0c_945z1rh043jsdx1lh0000gn/T//Rtmp2U7hRL/downloaded_packages
library(imager)
#> 载入需要的程辑包:magrittr
#> Error: package or namespace load failed for 'imager' in dyn.load(file, DLLpath = DLLpath, ...):
#>  无法载入共享目标对象‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/imager/libs/imager.so’::
#>   dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/imager/libs/imager.so, 6): Library not loaded: /opt/X11/lib/libX11.6.dylib
#>   Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/imager/libs/imager.so
#>   Reason: image not found

Created on 2018-11-18 by the reprex package (v0.2.1)

Here is my session info.

"si"
#> [1] "si"

Created on 2018-11-18 by the reprex package (v0.2.1)

Session info ``` r devtools::session_info() #> ─ Session info ────────────────────────────────────────────────────────── #> setting value #> version R version 3.5.1 (2018-07-02) #> os macOS 10.14 #> system x86_64, darwin15.6.0 #> ui X11 #> language (EN) #> collate zh_CN.UTF-8 #> ctype zh_CN.UTF-8 #> tz Asia/Shanghai #> date 2018-11-18 #> #> ─ Packages ────────────────────────────────────────────────────────────── #> package * version date lib source #> assertthat 0.2.0 2017-04-11 [1] CRAN (R 3.5.0) #> backports 1.1.2 2017-12-13 [1] CRAN (R 3.5.0) #> base64enc 0.1-3 2015-07-28 [1] CRAN (R 3.5.0) #> callr 3.0.0 2018-08-24 [1] CRAN (R 3.5.0) #> cli 1.0.1 2018-09-25 [1] CRAN (R 3.5.0) #> crayon 1.3.4 2017-09-16 [1] CRAN (R 3.5.0) #> desc 1.2.0 2018-05-01 [1] CRAN (R 3.5.0) #> devtools 2.0.1 2018-10-26 [1] CRAN (R 3.5.1) #> digest 0.6.18 2018-10-10 [1] CRAN (R 3.5.0) #> evaluate 0.12 2018-10-09 [1] CRAN (R 3.5.0) #> fs 1.2.6 2018-08-23 [1] CRAN (R 3.5.0) #> glue 1.3.0 2018-07-17 [1] CRAN (R 3.5.0) #> htmltools 0.3.6 2017-04-28 [1] CRAN (R 3.5.0) #> knitr 1.20 2018-02-20 [1] CRAN (R 3.5.0) #> magrittr 1.5 2014-11-22 [1] CRAN (R 3.5.0) #> memoise 1.1.0 2017-04-21 [1] CRAN (R 3.5.0) #> pkgbuild 1.0.2 2018-10-16 [1] CRAN (R 3.5.0) #> pkgload 1.0.2 2018-10-29 [1] CRAN (R 3.5.0) #> prettyunits 1.0.2 2015-07-13 [1] CRAN (R 3.5.0) #> processx 3.2.0 2018-08-16 [1] CRAN (R 3.5.0) #> ps 1.2.1 2018-11-06 [1] CRAN (R 3.5.0) #> R6 2.3.0 2018-10-04 [1] CRAN (R 3.5.0) #> Rcpp 1.0.0 2018-11-07 [1] CRAN (R 3.5.0) #> remotes 2.0.2 2018-10-30 [1] CRAN (R 3.5.0) #> rlang 0.3.0.1 2018-10-25 [1] CRAN (R 3.5.0) #> rmarkdown 1.10 2018-06-11 [1] CRAN (R 3.5.0) #> rprojroot 1.3-2 2018-01-03 [1] CRAN (R 3.5.0) #> sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.5.0) #> stringi 1.2.4 2018-07-20 [1] CRAN (R 3.5.0) #> stringr 1.3.1 2018-05-10 [1] CRAN (R 3.5.0) #> testthat 2.0.0 2017-12-13 [1] CRAN (R 3.5.0) #> usethis 1.4.0 2018-08-14 [1] CRAN (R 3.5.0) #> withr 2.1.2 2018-03-15 [1] CRAN (R 3.5.0) #> yaml 2.2.0 2018-07-25 [1] CRAN (R 3.5.0) #> #> [1] /Library/Frameworks/R.framework/Versions/3.5/Resources/library ```
ShotaOchi commented 5 years ago

You failed to install imager. Try to install imager just after launching R.

remove.packages("imager")
install.packages("imager")
library(imager)
dahtah commented 5 years ago

It looks like you're on OS X and need to install XQuartz. Sorry for the obscure error message, the next version should have something more explicit.

JiaxiangBU commented 5 years ago

Hi @ShotaOchi I try the code, but I get this same error that happens before. Hi @dahtah I download XQuartz X11 for Mac and follow the instruction to install it.

Finally, It works! Thank you very much!