Message-ID: <4B463D3F.3020100@stats.uwo.ca>
Date: 2010-01-07T19:59:59Z
From: Duncan Murdoch
Subject: "%d/%m/%Y" can not be displayed in a .rd file
In-Reply-To: <a835c81e1001071109p4bb06e22k9ed7026382d3114f@mail.gmail.com>
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