-
-
Notifications
You must be signed in to change notification settings - Fork 879
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Vignettes with plots won't built with knitr after 1.27 update: there is no package called 'magick' #1796
Comments
Thanks for the report! You may add magick to This problem occurs because BiocStyle enabled plot cropping unconditionally for all its output formats:
That means magick needs to be declared as a In rmarkdown, we only enable cropping in the |
Thank you for your answer! Setting |
…ound taken This is also an opportunity to link to the relevant GitHub issues and Bioc-devel threads. Cropping images through `magick::image_trim()` as done by default by `BiocStyle::html_document()` can fail on Linux. This could be an ImageMagick issue or an issue about lack of resources. The full investigative report is at https://stat.ethz.ch/pipermail/bioc-devel/2020-April/016650.html. This is related to: yihui/knitr#1785 (comment) yihui/knitr#1796 Bioconductor/BiocStyle#65 (comment) ropensci/magick#171 ropensci/magick#194 In regionReport version 1.21.10 I have opted by using `crop = NULL` to disable cropping of images by `BiocStyle::html_document()` and thus avoid the issues with `ImageMagick` either coming from `magick`, from the version of `ImageMagick` installed on the Linux Bioconductor build machine and devel docker, or from resources in these two Linux environments as described in the investigative report. About a month ago I also saw failures on Windows on Bioc 3.10. Whether they were caused by ggbio 1.35.1 or this issue will remain a mystery. But it's likely that this `magick::image_trim()` issue also affected the Bioconductor windows builder. The related bioc-devel threads are: https://stat.ethz.ch/pipermail/bioc-devel/2020-April/016538.html https://stat.ethz.ch/pipermail/bioc-devel/2020-March/016365.html
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
Hello,
Thank you for your essential package. I may have found a bug in the 1.27 release of knitr.
My package (HPAanalyze on Bioconductor) build vignette using knitr, and the Travis-CI build has been fine right up to the release of knitr 1.27 (i.e. this morning was ok, this afternoon was not.). I got the error message
there is no package called 'magick'
. I traced back to the line in the vignette that caused the error, and it was a function that generate plots using ggplot2 and gridExtra.I think a change in knitr 1.27 may have caused that. The full log is as below. Please let me know what other information I should include. Thank you very much.
https://travis-ci.com/trannhatanh89/HPAanalyze/builds/144784427
By filing an issue to this repo, I promise that
xfun::session_info('knitr')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: