[R] error on R CMD rtags

Duncan Murdoch murdoch.duncan at gmail.com
Wed Nov 10 19:42:05 CET 2010


On 10/11/2010 12:13 PM, Liviu Andronic wrote:
> Dear all
> I'm getting a strange error when trying to use rtags() to generate
> tags in Emacs format.
> root at liv-laptop:/usr/lib/R# R CMD rtags -o /usr/local/build/ETAGS
> --no-Rd --no-c library/
>
> Tagging R files under library/; writing to /usr/local/build/ETAGS
> (overwriting)...
>
> [..]
>
> Error: '\.' is an unrecognized escape in character string starting "[.]*\."
> Execution halted
> Done
>
> ?rtags says that
> pattern = "\\.[RrSs]$"
>
> so I don't understand why it would throw up this error. The output
> file is empty. Am I doing something wrong?
Looks like not enough escapes, i.e. the shell takes \\ to mean \, so R 
sees "\.[RrSs]$", which contains the unrecognized escape \.

Duncan Murdoch

> Liviu
>
>
> >  sessionInfo()
> R version 2.11.1 (2010-05-31)
> x86_64-pc-linux-gnu
>
> locale:
>   [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
>   [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
>   [5] LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8
>   [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
>   [9] LC_ADDRESS=C               LC_TELEPHONE=C
> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] fortunes_1.4-0 IPSUR_1.1
>
>



More information about the R-help mailing list