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 <r-package-devel@r-project.org> 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

Reply via email to