Displaying 16 results from an estimated 16 matches for "shownonascii".
2014 Apr 15
1
ASCIIfy() - a proposal for package:tools
...times they cannot be avoided. To make packages portable
and build without 'R CMD check' warnings, my solution has been to convert
problematic characters in functions and datasets to escaped ASCII, so
plot(1,main="S?o Paulo") becomes plot(1,main="S\u00e3o Paulo").
The showNonASCII() function in package:tools is helpful to identify R
source files where characters should be converted to ASCII one way or
another, but I could not find a function to actually perform the
conversion to ASCII.
I have written the function ASCIIfy() to convert character vectors to
ASCII. I imagin...
2018 Jul 12
1
Top level \Sexpr and R CMD check
...ug report?
Duncan Murdoch
Index: src/library/tools/R/QC.R
===================================================================
--- src/library/tools/R/QC.R (revision 74954)
+++ src/library/tools/R/QC.R (working copy)
@@ -6430,7 +6430,8 @@
if(basename(f) %in% c("iconv.Rd", "showNonASCII.Rd")) def_enc
<- TRUE
tmp <- tryCatch(suppressMessages(checkRd(f, encoding = enc,
def_enc = def_enc,
- macros = macros)),
+ macros = macros,
+...
2010 Oct 03
1
Encoding problem in Rd file
...explanation.
Type H <return> for immediate help.
...
l.587 \end
{References}
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
***********
I can easily find the offending lines using
showNonASCII(readLines(file)). However, I don't know what to do to
solve the problem. The strange thing (to me!) is that the pdf is
actually built with appropriate accentuated characters, at least when
I look at it with my pdf viewer (Acrobat reader).
My config is:
> sessionInfo()
R version 2.11.1 Patc...
2013 Dec 09
2
How can I find nonstandard or control characters in a large file?
I have a humongous csv file containing census data, far too big to read into
RAM. I have been trying to extract individual columns from this file using
the colbycol package. This works for certain subsets of the columns, but not
for others. I have not yet been able to precisely identify the problem
columns, as there are 731 columns and running colbycol on the file on my old
slow machine takes
2008 Apr 18
2
R CMD check <PACKAGE> Error
Hi,
Can anyone give me a hint on what's wrong if "R CMD check <PACKAGE>" gives
me this error:
Rd files with unknown encoding:
<FILENAME>.Rd
I have checked that file over and over and can't find any weired characters
or some such.
How can I fix this?
Thanks for your time, Joh
2011 Feb 01
1
Finding non-ASCII characters in R code using R
During R CMD check I get the following note:
* checking data for non-ASCII characters ... NOTE
Note: found 9 marked UTF-8 string(s)
How can I search my code files for non ASCII chars using R?
Thanks,
Mark
--
Mark Heckmann (Dipl. Wirt.-Ing.)
phone +49 (0) 421/1614618
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro!
2009 Aug 25
1
package dependencies specification
Hello,
After running R CMD check on my package I received the following error on
package dependencies:
* using log directory 'C:/z-zBackup/Nuvera Bio on
Iatros01/Development/RPackages/nvNormalize/nvNormalize.Rcheck'
* using R version 2.9.1 (2009-06-26)
* using session charset: ISO8859-1
* checking for file 'nvNormalize/DESCRIPTION' ... OK
* checking extension type ... Package
*
2010 Jul 30
1
how to find non-ASCII characters in .Rd files?
[Env: Win XP Pro / R 2.11.1]
I keep occasionally running into the annoying problem of getting
warnings from R CMD check regarding
non ASCII characters in .Rd files, without any easy way of finding them.
Mostly these come from copy/paste of references or other material from
web pages or Win applications,
and often involve varieties of quote-like characters, e.g., if I try to
include output
2012 Nov 27
2
R CMD check: better diagnosis for non-ASCII characters
[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....
2023 Oct 31
0
R 4.3.2 is released
...uman-readable conversion in ASCII on all platforms
(rather than NA_character_).
* trans3d() gains options continuous and verbose addressing the
problem of possible "wrap around" when projecting too long
curves, as reported by Achim Zeileis in PR#18537.
* tools::showNonASCII() has been rewritten to work better on macOS
14 (which has a changed implementation of iconv()).
* tiff(type = "quartz") (the default on macOS) now warns if
compression is specified: it continues to be ignored.
INSTALLATION on a UNIX-ALIKE:
* There is some support...
2023 Oct 31
0
R 4.3.2 is released
...uman-readable conversion in ASCII on all platforms
(rather than NA_character_).
* trans3d() gains options continuous and verbose addressing the
problem of possible "wrap around" when projecting too long
curves, as reported by Achim Zeileis in PR#18537.
* tools::showNonASCII() has been rewritten to work better on macOS
14 (which has a changed implementation of iconv()).
* tiff(type = "quartz") (the default on macOS) now warns if
compression is specified: it continues to be ignored.
INSTALLATION on a UNIX-ALIKE:
* There is some support...
2023 Oct 31
0
R 4.3.2 is released
...uman-readable conversion in ASCII on all platforms
(rather than NA_character_).
* trans3d() gains options continuous and verbose addressing the
problem of possible "wrap around" when projecting too long
curves, as reported by Achim Zeileis in PR#18537.
* tools::showNonASCII() has been rewritten to work better on macOS
14 (which has a changed implementation of iconv()).
* tiff(type = "quartz") (the default on macOS) now warns if
compression is specified: it continues to be ignored.
INSTALLATION on a UNIX-ALIKE:
* There is some support...
2018 Jul 12
3
Top level \Sexpr and R CMD check
On Thu, Jul 12, 2018 at 2:21 PM Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
> I think I found the bug. The tools::checkRd function only processes
> \Sexpr's with "stage=render". I think the author (who might have been
> me, I forget) assumed that would imply all the earlier stages as well,
> but apparently it doesn't.
>
> So you could use that as
2010 Sep 01
2
Rd-file error: non-ASCII input and no declared encoding
Dear list,
I came across the following error for three of my newly written Rd-files:
non-ASCII input and no declared encoding
I can't make sense of this.
Below I copied in one of the three files.
Can anybody please tell me what's wrong with it?
Thank you,
Christian
\name{tetragonula}
\alias{tetragonula}
\alias{tetragonula.coord}
\docType{data}
% \non_function{}
\title{Microsatellite
2008 Apr 22
3
R 2.7.0 is released
...'useBytes' to allow it to read a
fixed number of bytes in an MBCS locale.
o readNEWS() has been moved to the tools package.
o round() and signif() now do internal argument matching if
supplied with two arguments and at least one is named.
o New function showNonASCII() in package tools to aid detection
of non-ASCII characters in .R and .Rd files.
o The [dpq]signrank() functions now typically use considerably
less memory than previously, thanks to a patch from Ivo
Ugrina.
o spec.ar() now uses frequency(x) when calculating th...
2008 Apr 22
3
R 2.7.0 is released
...'useBytes' to allow it to read a
fixed number of bytes in an MBCS locale.
o readNEWS() has been moved to the tools package.
o round() and signif() now do internal argument matching if
supplied with two arguments and at least one is named.
o New function showNonASCII() in package tools to aid detection
of non-ASCII characters in .R and .Rd files.
o The [dpq]signrank() functions now typically use considerably
less memory than previously, thanks to a patch from Ivo
Ugrina.
o spec.ar() now uses frequency(x) when calculating th...