[Roxygen-devel] TODO tag error with Rd2
Laurent Gatto
laurent.gatto at gmail.com
Tue Sep 21 17:10:47 CEST 2010
To fix this issue, I have modified function parse.todo in file Rd2.R
parse.todo <- function(key, value)
append.Rd(todoTag(key,value))
And added a todoTag function to Rdapi.R
todoTag <- function(k,v)
return(sectionTag('Todo',paste('{', v, '}')))
I am not sure if this issue was affecting other users and to what
extend this represent a reasonable fix, but it seems to work with a
couple examples I tries and produces the same results as
use.Rd2=FALSE.
Best wishes,
Laurent
On 20 September 2010 11:29, Laurent Gatto <laurent.gatto at gmail.com> wrote:
> Dear all,
>
> First, thank you very much for roxygen. I have only been testing it so
> far, but am really looking forward to use it.
>
> I have come across a possible bug with the latest svn version of
> roxygen when enabling Rd2 and R 2.12.0 (2010-09-19 r52946):
> When using use.Rd2=TRUE, the TODO tag is missing some brackets in the Rd file.
>
> With 'R CMD roxygen -d -s package':
> \sectionTODOmore stuff to do
>
> Otherwise, with 'R CMD roxygen -d -package':
> \section{TODO}{more stuff to do}
>
> I have not found this issue on the mailing list and don't think it is
> related to the recent R version, as I tested with an R 2.11.1.
> Has anyone experienced this? Any hints?
>
> Thank you very much in advance.
>
> Best wishes,
>
> Laurent
>
>> sessionInfo()
> R version 2.13.0 Under development (unstable) (2010-09-19 r52946)
> Platform: x86_64-unknown-linux-gnu (64-bit)
>
> locale:
> [1] LC_CTYPE=en_GB.utf8 LC_NUMERIC=C
> [3] LC_TIME=en_GB.utf8 LC_COLLATE=en_GB.utf8
> [5] LC_MONETARY=C LC_MESSAGES=en_GB.utf8
> [7] LC_PAPER=en_GB.utf8 LC_NAME=C
> [9] LC_ADDRESS=C LC_TELEPHONE=C
> [11] LC_MEASUREMENT=en_GB.utf8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>
> other attached packages:
> [1] roxygen_0.1-2 digest_0.4.2
>
>
>
> --
> Laurent Gatto
> slashhome.be
>
More information about the Roxygen-devel
mailing list