PIFSCstockassessments / TMB.LBSPR

Implementation of GTG LBSPR model using TMB
Other
0 stars 0 forks source link

Problem generating multi-panel figures on MacBook #15

Open marcnadon opened 5 years ago

marcnadon commented 5 years ago

One workshop user with a Macbook couldn't get the multi-panel figures to generate and the TMB.LBSPR package would stop with the following message: Error in grid.Call.graphics(C_setviewport, vp, TRUE) : non-finite location and/or size for viewport grid.arrange

Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : polygon edge not found

I think this is linked to the gridExtra package that is called to create these panels in the process_output R script.

efletcherPIFSC commented 5 years ago

Marc,

This is what I found:

The polygon edge not found may be related to a Font issue on a their system: https://stackoverflow.com/questions/10581440/error-in-grid-calll-textbounds-as-graphicsannotxlabel-xx-xy-polygon https://groups.google.com/forum/#!topic/ggplot2/YP7SKvIxGGI

Nothing concrete with the non-finite location and/or size for viewport grid.arrange error.

Documenting the user's R session environment (sessionInfo()) when the error occurred will help narrow down the variability of the error (R version, platform, R libraries included, etc.).

It may be just a mac platform issue.

It could be coding issue at our end, since I was had Issues compiling it as a package before your Guam trip. The code I recently pushed out (#16) should work as an R-package.