[Roxygen-devel] Roxygen creates invalid file names?
Hadley Wickham
hadley at rice.edu
Wed Jun 24 02:15:47 CEST 2009
On Tue, Jun 23, 2009 at 5:36 PM, Peter Danenberg<pcd at roxygen.org> wrote:
>> * excluding invalid files from 'plyr'
>> Subdirectory 'man' contains invalid file names:
>> ..Rd .matrix_to_df.Rd [.indexed.Rd [.split.Rd [[.indexed_array.Rd
>> [[.indexed_df.Rd
>>
>> create from functions with the obvious names.
>
> Using @name should change the name of the file to something suitable;
> using @aliases should index the identifiers properly.
Thanks for that work around.
> Alternatively,
> we could do some automatic symbol -> name mapping for
> non-alpha-numerics.
That would be great - otherwise it's a hassle to remember.
> According to the R Language Definition 10.3.2, though:
>
> Identifiers consist of a sequence of letters, digits, the period
> ('.') and the underscore. They must not start with a digit nor
> underscore, nor with a period followed by a digit.
>
> I had assumed that would lead to a valid identifier -> filename
> mapping; I must have overlooked the case of operators, primitive
> identifiers and prefix-periods.
You can also create more exotic function names that you can't call
directly - e.g
`123` <- function() {}
"*--*" <- function() {}
Hadley
--
http://had.co.nz/
More information about the Roxygen-devel
mailing list