Re: [R-pkg-devel] Warnings from gdal

2020-07-27 Thread Trent McDonald
Hope this helps.  I had a similar issue with my package.  Prior to the
recent change, GDAL did not throw a warning for empty (NA) CRS
strings. After change, it does.  projectRaster is throwing the warning
because it thinks input and output crs are the same (perhaps CRS is
missing?).  The purpose of projectRaster is to change crs's, so
identical crs's make little sense. I suggest making sure the input CRS
is valid (not NA) and that output CRS is different than the input.

Trent McDonald
Principal Statistician

Western EcoSystems Technology, Inc.
Environmental & Statistical Consultants
1610 Reynolds Street
Laramie, WY 82072
307-760-4721
www.west-inc.com

Trent McDonald
Principal Statistician

Western EcoSystems Technology, Inc.
Environmental & Statistical Consultants
1610 Reynolds Street
Laramie, WY 82072
307-760-4721
www.west-inc.com


On Sun, Jul 26, 2020 at 8:12 AM Roy Mendelssohn - NOAA Federal via
R-package-devel  wrote:
>
> I have a package on CRAN that  has a graphics component that calls a package 
> that ultimately calls 'rgdal that CRAN is unhappy about.  'rgdal' now throws 
> a warning if 'crs' is used,  and unless I am misreading the problems (see 
> https://cran.r-project.org/web/checks/check_results_rerddapXtracto.html) that 
> is what is causing the problems.  I am not certain that I can suppress 
> warnings because it is from a package that calls a package (in this case 
> raster) that calls rgdal.
>
> Any advice appreciated, in particular if I am mis-reading the warning.
>
> 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: https://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

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] Warnings from gdal

2020-07-27 Thread Roy Mendelssohn - NOAA Federal via R-package-devel
Thanks.  What has made it really difficult is that devtools::check() runs fine 
on my Mac,  I installed Fedora on a virtual machine on my Mac,  
devtools::check() also runs fine,  so it makes it really difficult to pin down 
things because I can't get into a debugger to see why CRAN is throwing errors, 
or more importantly if steps I have taken to correct the errors are working.  
When I can't reproduce the warning it makes it very difficult.

-Roy


> On Jul 27, 2020, at 10:20 AM, Trent McDonald  wrote:
> 
> Hope this helps.  I had a similar issue with my package.  Prior to the
> recent change, GDAL did not throw a warning for empty (NA) CRS
> strings. After change, it does.  projectRaster is throwing the warning
> because it thinks input and output crs are the same (perhaps CRS is
> missing?).  The purpose of projectRaster is to change crs's, so
> identical crs's make little sense. I suggest making sure the input CRS
> is valid (not NA) and that output CRS is different than the input.
> 
> Trent McDonald
> Principal Statistician
> 
> Western EcoSystems Technology, Inc.
> Environmental & Statistical Consultants
> 1610 Reynolds Street
> Laramie, WY 82072
> 307-760-4721
> www.west-inc.com
> 
> Trent McDonald
> Principal Statistician
> 
> Western EcoSystems Technology, Inc.
> Environmental & Statistical Consultants
> 1610 Reynolds Street
> Laramie, WY 82072
> 307-760-4721
> www.west-inc.com
> 
> 
> On Sun, Jul 26, 2020 at 8:12 AM Roy Mendelssohn - NOAA Federal via
> R-package-devel  wrote:
>> 
>> I have a package on CRAN that  has a graphics component that calls a package 
>> that ultimately calls 'rgdal that CRAN is unhappy about.  'rgdal' now throws 
>> a warning if 'crs' is used,  and unless I am misreading the problems (see 
>> https://cran.r-project.org/web/checks/check_results_rerddapXtracto.html) 
>> that is what is causing the problems.  I am not certain that I can suppress 
>> warnings because it is from a package that calls a package (in this case 
>> raster) that calls rgdal.
>> 
>> Any advice appreciated, in particular if I am mis-reading the warning.
>> 
>> 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: https://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

**
"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: https://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