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

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

2019-10-03 Thread Driver, Charles
inytex') ){ install.packages('tinytex') requireNamespace('tinytex') #can perhaps leave this line out? tinytex::install_tinytex() } } Cheers, Charles ________________ From: Dirk Eddelbuettel Sent: Thursday, October 3, 2019 5:45:20 PM To: Fo

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

[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