[R-pkg-devel] Appropriate usage of 'Suggests' -- package installed conditional on other software not found

2019-10-03 Thread Driver, Charles
I have a function that outputs / compiles some latex. To do this I use Sys.which('pdflatex') and if nothing is found, prompt the user whether to install tinytex package. So, normally I understand the use of 'Suggests' in the package description to be for when there are only certain functions / t

Re: [R-pkg-devel] Appropriate usage of 'Suggests' -- package installed conditional on other software not found

2019-10-03 Thread Michael Dewey
Dear Charles If your package prints a message to the user suggesting how to get a Latex installation then I do not think you need to do anything else. After all they could install Latex some other way if they pleased or try to work out why the installation they thought they had is not working.

Re: [R-pkg-devel] consider running tools::compactPDF(gs_quality = "ebook")

2019-10-03 Thread Juhee Lee
Maybe "vignette.pdf" is rebuilt by R CMD build. Juhee Lee 2019년 10월 2일 (수) 오후 10:09, Duncan Murdoch 님이 작성: > On 02/10/2019 8:34 a.m., Juhee Lee wrote: > > Dear all. > > > > I checked my package on win-builder, and got this message: > > > > * checking sizes of PDF files under 'inst/doc' ... WARNI

Re: [R-pkg-devel] Appropriate usage of 'Suggests' -- package installed conditional on other software not found

2019-10-03 Thread Dirk Eddelbuettel
Charles, On 3 October 2019 at 10:10, Driver, Charles wrote: | I have a function that outputs / compiles some latex. To do this I use Sys.which('pdflatex') and if nothing is found, prompt the user whether to install tinytex package. So, normally I understand the use of 'Suggests' in the packag

Re: [R-pkg-devel] consider running tools::compactPDF(gs_quality = "ebook")

2019-10-03 Thread Juhee Lee
If what you say is the PATH of a system variable, there are in it. And in R console, I can get this result: > Sys.getenv("R_GSCMD") [1] "C:\\Program Files\\gs\\gs9.27\\bin\\gswin64c.exe" > Sys.getenv("R_QPDF") [1] "C:\\Program Files\\qpdf-9.0.1\\bin\\qpdf.exe" Juhee Lee 2019년 10월 2일 (수

Re: [R-pkg-devel] Appropriate usage of 'Suggests' -- package installed conditional on other software not found

2019-10-03 Thread Fox, John
Dear Dirk, > On Oct 3, 2019, at 9:11 AM, Dirk Eddelbuettel wrote: > > > Charles, > > On 3 October 2019 at 10:10, Driver, Charles wrote: > | I have a function that outputs / compiles some latex. To do this I use > Sys.which('pdflatex') and if nothing is found, prompt the user whether to > ins

Re: [R-pkg-devel] Appropriate usage of 'Suggests' -- package installed conditional on other software not found

2019-10-03 Thread Dirk Eddelbuettel
Hi John, On 3 October 2019 at 13:56, Fox, John wrote: | > On Oct 3, 2019, at 9:11 AM, Dirk Eddelbuettel wrote: | > On 3 October 2019 at 10:10, Driver, Charles wrote: | > | I have a function that outputs / compiles some latex. To do this I use Sys.which('pdflatex') and if nothing is found, prom

Re: [R-pkg-devel] consider running tools::compactPDF(gs_quality = "ebook")

2019-10-03 Thread Duncan Murdoch
On 03/10/2019 9:00 a.m., Juhee Lee wrote: Maybe "vignette.pdf" is rebuilt by R CMD build. Can't you tell by looking at what is printed? You should see * installing the package to build vignettes * creating vignettes ... OK (You can save this output to a file by adding the option --log to the

Re: [R-pkg-devel] Appropriate usage of 'Suggests' -- package installed conditional on other software not found

2019-10-03 Thread Fox, John
Hi Dirk, > On Oct 3, 2019, at 10:20 AM, Dirk Eddelbuettel wrote: > > > Hi John, > > On 3 October 2019 at 13:56, Fox, John wrote: > | > On Oct 3, 2019, at 9:11 AM, Dirk Eddelbuettel wrote: > | > On 3 October 2019 at 10:10, Driver, Charles wrote: > | > | I have a function that outputs / compile

Re: [R-pkg-devel] Appropriate usage of 'Suggests' -- package installed conditional on other software not found

2019-10-03 Thread Dirk Eddelbuettel
John, On 3 October 2019 at 15:26, Fox, John wrote: | In the original context of this thread, a simple error message indicating that LaTeX is absent probably would suffice. Yes, I agree. Hence this earlier comment of mine you choose not to reply to: | > Anyway, this is going off-topic. It mig

Re: [R-pkg-devel] Appropriate usage of 'Suggests' -- package installed conditional on other software not found

2019-10-03 Thread Driver, Charles
Thanks for the thoughts all. In some ideal world I agree a simple message and leave it up to the user would be cleanest, in a world where I / others already have to deal with random compiler problems and other excitement in the middle of teaching workshops, I can see the benefits of an optional

Re: [R-pkg-devel] Appropriate usage of 'Suggests' -- package installed conditional on other software not found

2019-10-03 Thread Dirk Eddelbuettel
On 3 October 2019 at 21:38, Driver, Charles wrote: | Since texi2dvi does more advanced checking than my simple Sys.which('pdflatex') , it sounds like I should rely on an error from that as cause for the message / prompt. Right. The corrolary is that if texi2dvi fails, simply installing tinyte