-
-
Notifications
You must be signed in to change notification settings - Fork 873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plot_crop() and the convert command from ImageMagick #1785
Comments
Thanks for the report! The |
3 tasks
lcolladotor
added a commit
to leekgroup/regionReport
that referenced
this issue
Apr 24, 2020
…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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Hi,
We use Windows Server 2012 R2 for the Bioconductor build system to build and check Bioconductor packages. When building the vignettes, we sometimes see a warning like this one for some packages:
Tracking down this warning reveals at least 2 issues with knitr:
Sys.which("convert")
returns:convert.exe
command is a Microsoft utility for converting a file-system from FAT to NTFS (see https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/convert). Unfortunately this is whatknitr::plot_crop()
picks up which is why we get the above warnings.Since knitr already suggests CRAN package magick (since knitr 1.22), I wonder if there is any reason to not use this in
plot_crop()
instead of a system call to theconvert
command from ImageMagick. That way knitr would no longer depend on ImageMagick and the risk to pick up the wrongconvert
command would be eliminated, makingknitr::plot_crop()
more robust and platform independent.Thanks,
H.
The text was updated successfully, but these errors were encountered: