[R] trouble with .Rd file

Duncan Murdoch murdoch.duncan at gmail.com
Fri Feb 20 19:03:48 CET 2015


On 20/02/2015 12:58 PM, Erin Hodgess wrote:
> Hello everyone!
> 
> I've been messing with this .Rd file and am having forest/trees problem by
> now.
> 
> Here is the section of the .Rd file that is the troublemaker:
> 
> \usage{
> plot.fore4nodate(y, sim, dates, date.fmt = "%Y-%m-%d", gof.leg = FALSE,
> gof.digits = 2, legend =  "", leg.cex = 1, bands.col = "lightblue", border
> = NA,
> tick.tstep = "auto", lab.tstep = "auto", lab.fmt = NULL, main = NULL,
> cal.ini = NA,
> val.ini = NA, xlab = "Time",  ylab =  "", ylim, col = c("black", "blue"),
> type = c("lines", "lines"), cex = c(1.8, 1.8), cex.axis = 1.8, ex.lab = 1.8,
> lwd = c(2.5, 2.5), y = 1:2, pch = c(1, 9), cex.main = 2.1, lasa = 1, mt1 =
> 1.27, ...)
> }
> 
> 
> Now the error part:
> 
> "c:\Progra~1\R\R-3.0.2\bin\x64\Rcmd" build ts1
> 
> * checking for file 'ts1/DESCRIPTION' ... OK
> * preparing 'ts1':
> * checking DESCRIPTION meta-information ... OK
> Warning: newline within quoted string at plot.fore4nodate.Rd:10
> Error in parse_Rd
> ("C:/Users/hodgesse/AppData/Local/Temp/Rt....../ts1/man/plot.fore4nodate.RD",
> :
>   Unexpected end of input in (in " quoted string opened at
> plot.fore4nodate.Rd:14.26)
> Execution halted
> 
> 
> The 14.26 would be at the word dates in the first line of the
> plot.fore4nodate line.
> 
> This is making me a little nuts.  Actually a lot nuts.
> 
> If anyone can see anything, I would really appreciate any suggestions.

Generally percent symbols (%) need to be escaped in Rd files.  So the
default value for date.fmt should be entered as "\%Y-\%m-\%d".

Duncan Murdoch



More information about the R-help mailing list