[R] "%d/%m/%Y" can not be displayed in a .rd file
Duncan Murdoch
murdoch at stats.uwo.ca
Thu Jan 7 20:59:59 CET 2010
On 07/01/2010 2:09 PM, rusers.sh wrote:
> Hi all,
> I found the date format (e.g."%d/%m/%Y") in the .rd file cannot be
> displayed after building the package. See below,
> ###.rd file####
> \examples{
> a<-"10/20/1999"
> DateConversion(a,DateIn="%m/%d/%Y",DateOut="%d/%m/%Y")
> }
> ####The result is ####
> Examples:
> a<-"10-20-1999"
> DateConversion(a,DateIn="
>
> ??"%m/%d/%Y" seems cannot be recognized.
> Is there some method to solve this and make it visible?
> Thanks a lot.
The % character is a comment character in Rd files. You need to escape it:
DateConversion(a,DateIn="\%m/\%d/\%Y",DateOut="\%d/\%m/\%Y")
Duncan Murdoch
More information about the R-help
mailing list