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 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 /

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

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,

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 >

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 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

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' ...

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

[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 /