Re: [R-pkg-devel] translation .mo files

2020-02-10 Thread Fox, John
Dear Paul, Here's some information that I prepared for translators of the Rcmdr package, slightly edited to make it more generic. Perhaps you'll find it useful: R provides a general facility for translating messages from English to other languages using the GNU gettext translation tools

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

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] advice about errorCondition() function in the Rcmdr package

2019-05-15 Thread Fox, John
Dear Uwe, > -Original Message- > From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] > Sent: Wednesday, May 15, 2019 7:51 AM > To: Fox, John ; R Package Development de...@r-project.org> > Subject: Re: [R-pkg-devel] advice about errorCondition() function in t

[R-pkg-devel] advice about errorCondition() function in the Rcmdr package

2019-05-14 Thread Fox, John
Dear list members, I noticed that there's a name clash between errorCondition() in the Rcmdr package and the new function by the same name in the base package in R 3.6.0. errorCondition() has been in the Rcmdr package for many years and is used extensively -- literally dozens of times. It's exp

Re: [R-pkg-devel] creating a link to a vignette in a .Rd file

2018-11-20 Thread Fox, John
eorgi Boshnakov > > > -Original Message- > From: R-package-devel [mailto:r-package-devel-boun...@r-project.org] On > Behalf Of Fox, John > Sent: 20 November 2018 01:16 > To: Hadley Wickham > Cc: R Package Development > Subject: Re: [R-pkg-devel] creating a link

Re: [R-pkg-devel] creating a link to a vignette in a .Rd file

2018-11-19 Thread Fox, John
l to me. I found a couple of queries in a web search but no solution. Thanks for this, John > -Original Message- > From: Hadley Wickham [mailto:h.wick...@gmail.com] > Sent: Monday, November 19, 2018 6:21 PM > To: Fox, John > Cc: R Package Development > Subject: Re:

[R-pkg-devel] creating a link to a vignette in a .Rd file

2018-11-19 Thread Fox, John
Dear r-package-devel list members, I'd like to create a link to a package vignette from a help file in the same package, for example to the "partial-residuals" vignette in the effects package from effect.Rd. I'm able to generate a URL for the vignette as follows: \Sexpr[results=text]{pa

Re: [R-pkg-devel] Trying to work around missing functionality

2018-08-27 Thread Fox, John
Hi John, It's possible that I didn’t follow what you did, but it appears as if you call globalVariables() *inside* the function. Instead try to do as Richard Heiberger suggested and place the call outside of the function, e.g., in a source file in the package R directory named globals.R. (Of co

Re: [R-pkg-devel] Package builds, installs, and runs but does not pass devtools::check()

2018-07-16 Thread Fox, John
Dear Michael, You could add a call to globalVariables() in the package sources for cases like this. I hope this helps, John - John Fox Professor Emeritus McMaster University Hamilton, Ontario, Canada Web: https://socialsciences.mc

Re: [R-pkg-devel] Changing a package's name

2017-06-11 Thread Fox, John
Dear David, No one at CRAN has responded yet, so I'll take a stab at it. First, you're right about the resonance of "huxtable" for North Americans, and if the package were mine, I'd be slightly embarrassed about the name. CRAN generally will not allow you to rename a package, for several obviou

Re: [R-pkg-devel] Problem in stats::model.matrix when omitting two-way interactions

2017-03-30 Thread Fox, John
Dear Paul, Isn't this really a question for r-help rather than r-package-devel? In any event, I think that your message is based on (an entirely understandable) misunderstanding of what the : operator on the right-hand side of a model formula does. The : operator is equivalent to %in%, and used

Re: [R-pkg-devel] multiple bibentry()s in CITATION

2017-03-27 Thread Fox, John
Dear Martin, Thanks for following up on this. Best, John > -Original Message- > From: Martin Maechler [mailto:maech...@stat.math.ethz.ch] > Sent: March 27, 2017 9:26 AM > To: Fox, John > Cc: Martin Maechler ; r-package-devel@r- > project.org > Subject: RE: [

Re: [R-pkg-devel] multiple bibentry()s in CITATION

2017-01-16 Thread Fox, John
e all of them." Best, John > -Original Message- > From: Martin Maechler [mailto:maech...@stat.math.ethz.ch] > Sent: Monday, January 16, 2017 10:02 AM > To: Fox, John > Cc: r-package-devel@r-project.org > Subject: Re: [R-pkg-devel] multiple bibentry()s in CITATION

[R-pkg-devel] multiple bibentry()s in CITATION

2016-09-02 Thread Fox, John
Dear list members, I've noticed that citation(package="pkg") generates both a text citation and a BiBTeX entry when the CITATION file contains a single call to bibentry() or citEntry(), but that only text citations are shown if there are multiple calls to bibentry() or citEntry(). Is this beh

Re: [R-pkg-devel] data function from utils package

2016-08-16 Thread Fox, John
Dear Mike, Perhaps it's stating the obvious, but why not save the .csv file with ";" as the delimiter using the sep argument to write.csv() or write.table(), or save as a .txt file with " " as the delimiter? Although I don't know why ";" was chosen in preference to "," for data(), I doubt that