[R-pkg-devel] CRAN incoming queue closed from Aug 09 to Aug 18
Dear package developers, the CRAN incoming queue will be closed from Aug 09, 2019 to Aug 18, 2019. Hence package submissions are only possible before and after that period. CRAN maintainance work and some work on a possibly forthcoming Windows toolchain will be pushed forward. Best, Uwe Ligges (for the CRAN team) __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
[R-pkg-devel] Finding UTF character in .RData file
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? Thanks, -ROy ** "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.mendelss...@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. __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] Finding UTF character in .RData file
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 __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] Finding UTF character in .RData file
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 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.mendelss...@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. __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] Finding UTF character in .RData file
Using tools:::.check_package_datasets() produces the error, but doesn't give out any more information. I don't know enough about some fo the write() function. If I write to csv of some sort, will this information be preserved? Thanks, -Roy > On Aug 5, 2019, at 8:57 AM, Roy Mendelssohn - NOAA Federal > wrote: > > 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 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.mendelss...@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. > ** "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.mendelss...@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. __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] Finding UTF character in .RData file
Okay I found it. I looked at the code for tools:::.check_package_datasets(), took out the core part, ran every string I had in every dataset, it came out. A degree symbol. Thanks for telling me about the function. Still surprised that the test machines don't flag it. Or is this a new test on CRAN? -Roy > On Aug 5, 2019, at 10:48 AM, Roy Mendelssohn - NOAA Federal > wrote: > > Using tools:::.check_package_datasets() produces the error, but doesn't give > out any more information. I don't know enough about some fo the write() > function. If I write to csv of some sort, will this information be > preserved? > > Thanks, > > -Roy > > >> On Aug 5, 2019, at 8:57 AM, Roy Mendelssohn - NOAA Federal >> wrote: >> >> 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 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.mendelss...@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. >> > > ** > "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.mendelss...@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. > ** "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.mendelss...@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. __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] Finding UTF character in .RData file
On 05/08/2019 2:13 p.m., Roy Mendelssohn - NOAA Federal wrote: Okay I found it. I looked at the code for tools:::.check_package_datasets(), took out the core part, ran every string I had in every dataset, it came out. A degree symbol. Thanks for telling me about the function. Still surprised that the test machines don't flag it. Or is this a new test on CRAN? I don't think the function is new. Maybe this part of the testing is new. Duncan Murdoch __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel