Re: [R-pkg-devel] Macros in Rd files --- supplementary question ...

2017-11-09 Thread Rolf Turner
On 10/11/17 13:10, François Michonneau wrote: A github search might be helpful to identify packages that define macros in their Rd files: https://github.com/search?utf8=%E2%9C%93&q=user%3Acran+extension%3Ard+newcommand&type=Code Thanks. Looking into it. cheers, Rolf -- Technical Editor ANZ

Re: [R-pkg-devel] Macros in Rd files --- supplementary question ...

2017-11-09 Thread François Michonneau
A github search might be helpful to identify packages that define macros in their Rd files: https://github.com/search?utf8=%E2%9C%93&q=user%3Acran+extension%3Ard+newcommand&type=Code On Thu, Nov 9, 2017 at 6:35 PM, Rolf Turner wrote: > > On 10/11/17 12:00, Duncan Murdoch wrote: > > [Rolf Turner

Re: [R-pkg-devel] Macros in Rd files --- supplementary question ...

2017-11-09 Thread Rolf Turner
On 10/11/17 12:00, Duncan Murdoch wrote: [Rolf Turner wrote:] ... when I do the "R CMD build" thing, when it comes to the "* building the PDF package manual" step it says "Hmm ... looks like a package" (no shit, Sherlock!) and emits a huge amount of verbose LaTeX diagnostics. "Normally" one

Re: [R-pkg-devel] Macros in Rd files.

2017-11-09 Thread Duncan Murdoch
On 09/11/2017 3:05 PM, Rolf Turner wrote: On 09/11/17 23:40, Duncan Murdoch wrote: On 09/11/2017 5:06 AM, Uwe Ligges wrote: Note the % may be a comment? Yes, and the body should be written in Rd markup, not R.  Working out the appropriate number of escapes is painful; I recommend trial and e

Re: [R-pkg-devel] Macros in Rd files.

2017-11-09 Thread Duncan Murdoch
On 09/11/2017 3:05 PM, Rolf Turner wrote: On 09/11/17 23:40, Duncan Murdoch wrote: On 09/11/2017 5:06 AM, Uwe Ligges wrote: Note the % may be a comment? Yes, and the body should be written in Rd markup, not R.  Working out the appropriate number of escapes is painful; I recommend trial and e

Re: [R-pkg-devel] Macros in Rd files --- supplementary question ...

2017-11-09 Thread Duncan Murdoch
On 09/11/2017 3:29 PM, Rolf Turner wrote: ... Mr. Speaker. On 09/11/17 23:40, Duncan Murdoch wrote: On 09/11/2017 5:06 AM, Uwe Ligges wrote: Note the % may be a comment? Yes, and the body should be written in Rd markup, not R.  Working out the appropriate number of escapes is painful; I re

Re: [R-pkg-devel] Macros in Rd files --- supplementary question ...

2017-11-09 Thread Rolf Turner
... Mr. Speaker. On 09/11/17 23:40, Duncan Murdoch wrote: On 09/11/2017 5:06 AM, Uwe Ligges wrote: Note the % may be a comment? Yes, and the body should be written in Rd markup, not R.  Working out the appropriate number of escapes is painful; I recommend trial and error. This worked for

Re: [R-pkg-devel] Macros in Rd files.

2017-11-09 Thread Rolf Turner
On 09/11/17 23:40, Duncan Murdoch wrote: On 09/11/2017 5:06 AM, Uwe Ligges wrote: Note the % may be a comment? Yes, and the body should be written in Rd markup, not R.  Working out the appropriate number of escapes is painful; I recommend trial and error. This worked for me:  \newcommand

Re: [R-pkg-devel] Macros in Rd files.

2017-11-09 Thread Rolf Turner
On 09/11/17 23:06, Uwe Ligges wrote: Note the % may be a comment? Ah, yes. Of course! Duh! (Slaps forehead vigorously!) Thanks. cheers, Rolf -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 ___

[R-pkg-devel] R CMD INSTALL crashes with recent builds of r-devel

2017-11-09 Thread Chris Brien
Dear list members, I have three packages on CRAN (asremlPlus, dae and imageData). The current versions of all three packages can be built and installed using build of 2017-06-27 r72859 development snapshot of R. I am doing this on a 64-bit laptop and a 64-bit desktop, both running Windows 10.

Re: [R-pkg-devel] issues with SOfun - package upload

2017-11-09 Thread Dason Kurkiewicz
Did you write it from scratch or modify the function from the package you were referencing? There may be some licensing issues you need to consider either way. -Dason On Thu, Nov 9, 2017 at 3:53 AM, LUCA BELMONTE wrote: > Dear Brian, > Dear Uwe, > > Thank you for your replies. > > I wrote a fun

Re: [R-pkg-devel] Macros in Rd files.

2017-11-09 Thread Duncan Murdoch
On 09/11/2017 5:06 AM, Uwe Ligges wrote: Note the % may be a comment? Yes, and the body should be written in Rd markup, not R. Working out the appropriate number of escapes is painful; I recommend trial and error. This worked for me: \newcommand{\today}{\Sexpr{format(Sys.Date(),"\\\%d/\\

Re: [R-pkg-devel] Macros in Rd files.

2017-11-09 Thread Uwe Ligges
Note the % may be a comment? Uwe On 09.11.2017 06:05, Rolf Turner wrote: I tried to define a macro to produce today's date (like unto the "\today" command in LaTeX): \newcommand{\today}{format(Sys.date(),"%d/%m/%Y")} I put this into my *.Rd file just before invoking it.  (Something like "

Re: [R-pkg-devel] issues with SOfun - package upload

2017-11-09 Thread LUCA BELMONTE
Dear Brian, Dear Uwe, Thank you for your replies. I wrote a function that does the same stuff that the suggested package does. Now there are no reference to suggested packages. Best, Luca 2017-11-08 18:03 GMT+01:00 Uwe Ligges : > And even this cannot work for strong dependencies, as sztrong de