[Rd] R CMD check: better diagnosis for non-ASCII characters

From: Michael Friendly <friendly_at_yorku.ca>
Date: Tue, 27 Nov 2012 17:17:16 -0500


[Env: R 2.15.1, Win Xp]

Suggestion:
Could the R script that checks for non-ASCII characters in R CMD check not give either:
(a) a pointer to tools:::showNonASCIIfile, as in, try running tools:::showNonASCIIfile("Battig.Rd")
or,
(b) perhaps more useful, the result of tools:::showNonASCIIfile(file.Rd) on the offending file(s).

I'm frequently bitten by this in preparing .Rd files when I copy/paste references to the
.Rd from a .pdf or web link. But it is nearly impossible to see these variant characters

in my .Rd files with any editor.

This recent example was solved by
> tools:::showNonASCIIfile("Battig.Rd")
47: \emph{Journal of Experimental Psychology}, 80 (1969), pp. 1<96>46

but I had to find this function again via ??ascii because it is not exported.

-- 
Michael Friendly     Email: friendly AT yorku DOT ca
Professor, Psychology Dept. & Chair, Quantitative Methods
York University      Voice: 416 736-2100 x66249 Fax: 416 736-5814
4700 Keele Street    Web:   http://www.datavis.ca
Toronto, ONT  M3J 1P3 CANADA

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 27 Nov 2012 - 22:22:19 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 28 Nov 2012 - 11:22:00 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive