[R-SIG-Mac] illegal operation on vignette("xkcd-intro"): pdf viewer perhaps?

David Winsemius dwinsemius at comcast.net
Tue Nov 14 18:10:50 CET 2017

> On Nov 13, 2017, at 5:45 AM, Tim Bates <timothy.c.bates at gmail.com> wrote:
> On R version: R version 3.4.2 (2017-09-28) (Platform: x86_64-apple-darwin15.6.0, MacOS: 10.13.1)
> load library(xkcd), and then try and run the vignette:
> vignette("xkcd-intro")
> *** caught illegal operation ***
> address 0x7fff7429b5e2, cause 'illegal opcode'
> Traceback:
> 1: system2(pdfviewer, shQuote(out), wait = FALSE)
> 2: print.vignette(x)
> 3: function (x, ...) UseMethod("print")(x)
> Possible actions...

I suppose it's a bug by definition, but whether it is the sign of a flakey system at your end or a more widespread (reproducible) issue is open to question... since you have not followed the bug-reporting guidelines in the Posting Guide. I'm unable to reproduce. Did you load the several dependencies?

My guess is that you should be examining your Adobe Acrobat Reader setup. I see this when I look for system level pdfviewer info:


When installing the package with dependencies I get:

also installing the dependencies ‘extrafontdb’, ‘Rttf2pt1’, ‘extrafont’

trying URL 'https://cloud.r-project.org/bin/macosx/el-capitan/contrib/3.4/extrafontdb_1.0.tgz'
Content type 'application/x-gzip' length 6855 bytes
downloaded 6855 bytes

trying URL 'https://cloud.r-project.org/bin/macosx/el-capitan/contrib/3.4/Rttf2pt1_1.3.4.tgz'
Content type 'application/x-gzip' length 104961 bytes (102 KB)
downloaded 102 KB

trying URL 'https://cloud.r-project.org/bin/macosx/el-capitan/contrib/3.4/extrafont_0.17.tgz'
Content type 'application/x-gzip' length 33006 bytes (32 KB)
downloaded 32 KB

trying URL 'https://cloud.r-project.org/bin/macosx/el-capitan/contrib/3.4/xkcd_0.0.5.tgz'
Content type 'application/x-gzip' length 372586 bytes (363 KB)
downloaded 363 KB

> sessionInfo()
R version 3.4.2 Patched (2017-10-04 r73465)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: OS X El Capitan 10.11.6

Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib

[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
 [1] xkcd_0.0.5      extrafont_0.17  rms_5.1-1       SparseM_1.77    Hmisc_4.0-3     ggplot2_2.2.1  
 [7] Formula_1.2-2   survival_2.41-3 sos_2.0-0       brew_1.0-6      lattice_0.20-35

loaded via a namespace (and not attached):
 [1] viridis_0.4.0       tidyr_0.7.2         jsonlite_1.5        viridisLite_0.2.0  
 [5] splines_3.4.2       assertthat_0.2.0    latticeExtra_0.6-28 Rttf2pt1_1.3.4     
 [9] gamlss_5.0-4        backports_1.1.1     quantreg_5.34       glue_1.2.0         
[13] downloader_0.4      extrafontdb_1.0     digest_0.6.12       RColorBrewer_1.1-2 
[17] checkmate_1.8.5     minqa_1.2.4         colorspace_1.3-2    sandwich_2.4-0     
[21] htmltools_0.3.6     Matrix_1.2-11       plyr_1.8.4          XML_3.98-1.9       
[25] pkgconfig_2.0.1     DiagrammeR_0.9.2    purrr_0.2.4         mvtnorm_1.0-6      
[29] scales_0.5.0        gamlss.data_5.0-0   lme4_1.1-14         MatrixModels_0.4-1 
[33] htmlTable_1.9       tibble_1.3.4        influenceR_0.1.0    TH.data_1.0-8      
[37] nnet_7.3-12         lazyeval_0.2.1      rgexf_0.15.3        magrittr_1.5       
[41] polspline_1.1.12    nlme_3.1-131        MASS_7.3-47         foreign_0.8-69     
[45] mxnet_0.10.1        Rook_1.1-1          tools_3.4.2         data.table_1.10.4-3
[49] hms_0.3             multcomp_1.4-7      stringr_1.2.0       munsell_0.4.3      
[53] cluster_2.0.6       bindrcpp_0.2        gamlss.dist_5.0-3   compiler_3.4.2     
[57] rlang_0.1.2         grid_3.4.2          nloptr_1.0.4        rstudioapi_0.7     
[61] htmlwidgets_0.9     visNetwork_2.0.1    igraph_1.1.2        base64enc_0.1-3    
[65] gtable_0.2.0        codetools_0.2-15    R6_2.2.2            gridExtra_2.3      
[69] zoo_1.8-0           knitr_1.17          dplyr_0.7.4         bindr_0.1          
[73] readr_1.1.1         stringi_1.1.5       parallel_3.4.2      Rcpp_0.12.13       
[77] rpart_4.1-11        acepack_1.4.1      

> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

David Winsemius
Alameda, CA, USA

'Any technology distinguishable from magic is insufficiently advanced.'   -Gehm's Corollary to Clarke's Third Law

More information about the R-SIG-Mac mailing list