[R-pkg-devel] Finding UTF character in .RData file

Roy Mendelssohn - NOAA Federal roy@mende|@@ohn @end|ng |rom no@@@gov
Mon Aug 5 17:57:15 CEST 2019


Thanks.  What is surprising me is I can't reproduce the error either directly on my Mac or on rhub::windows and I am waiting for the result of win-builder  (I can't check most rhub::linux  because it fails to correctly build a number of required packages,  something I have reported but still persists - like rgdal,  rerddap, crul,  ncdf4).

-Roy
 - 
> On Aug 5, 2019, at 8:50 AM, Duncan Murdoch <murdoch.duncan using gmail.com> wrote:
> 
> On 05/08/2019 10:51 a.m., Roy Mendelssohn - NOAA Federal via R-package-devel wrote:
>> Hi All:
>> The recent nighty CRAN checks on one of my packages reports:
>> Check: data for non-ASCII characters
>> Result: NOTE
>>      Note: found 1 marked UTF-8 string
>> When  originally submitted this was not the case.  All my data files are .RData files,  and even more so most are binary data.  If they were text files I could readily scan for UTF,  is there a way once I read the data into R to do a similar scan from within R.  I just ran the most recent  (Github) version of devtools::check() and it doesn't report an error.  Or is there a way I can get more specific information from the CRAN nightly build or Rhub or the like?
> 
> That message comes when the tools:::.check_package_datasets function detects a string containing a UTF-8 encoding.  You can run it directly and you might get a more informative message.  If not, I suppose you could fix() it and add some extra debugging messages....
> 
> It's argument is "pkgDir"; I think that is the directory holding the files after untarring the .tar.gz file.
> 
> Duncan Murdoch

**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: Roy.Mendelssohn using noaa.gov www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.



More information about the R-package-devel mailing list