Re: [R-pkg-devel] Issue with use of par() in package

2025-08-21 Thread Michael Chirico
I can understand caution about functions with side effects, but rejecting a package on those grounds alone seems strange to me. I can easily find thousands of calls to par() on CRAN without any associated on.exit() cleanup ([1] [2] [3] [4] with a full regex search [5]) [1] https://github.com/cran

Re: [R-pkg-devel] html manual notes

2025-08-21 Thread Ivan Krylov via R-package-devel
В Mon, 18 Aug 2025 12:19:40 +0100 Rasha Shraim via R-package-devel пишет: > \if{html}{\out{World region coverage:}\out{ style="text-align: > left">}\figure{March2025_vitD_cloudy_world.png}{options: > style="width:500px;max-width:50\%;"}\out{}} If you add an empty line between \figure{...} and \o

Re: [R-pkg-devel] Svar: Issue with use of par() in package

2025-08-21 Thread Jan van der Laan
Hi Kristian, Also replying to the list. Thanks for the suggestion. Personally I have something like the following in my ~/.Rprofile if (interactive() && terminalgraphics::has_tgp_support()) { options(device = terminalgraphics::tgp) } So that doesn't work well with your suggestion, but crea

Re: [R-pkg-devel] Issue with use of par() in package

2025-08-21 Thread Jan van der Laan
Someone asked for the response I got from CRAN. I included it below: --- [... another issue where I forgot a \value{} in the documentation of one of the functions] Please make sure that you do not change the user's options, par or working directory. If you really have to do so within funct