Future throws a warning that is invisible in a regular call #559
Replies: 3 comments 7 replies
-
|
It looks like this warning is coming from if ( inMemory(x) ) {
x@data@min <- min(x@data@values, na.rm=TRUE)
x@data@max <- max(x@data@values, na.rm=TRUE)
} else {I suspect it is because that However, I agree with you, it seems like r <- raster::raster()
r[] <- NAshould also produce a warning here. That's something raster need to solve. |
Beta Was this translation helpful? Give feedback.
-
|
The design is for raster not to show a warning with Because this is what Apparently that does not work with And now the warnings are not produced with |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @rhijmans this will help. I usually wrap |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
My code throws warnings that are excessively hard to track because the warning are thrown only within
futureand the origin of the problem is lost. This issue arises when I initialize aRasterLayerwithNAsWith a regular call this does not throw any warning:
However, once wrapped in future it does throw two warnings without trace
Interestingly, the warnings are valid and expected. They correspond to
I would like to know what settings I should tune in R to either:
futurebehaving like a regular call to get rid of this specific warning that is never raise out of this specific case AFAIKfutureso I can track where the problem come from and fix it.Thanks
Beta Was this translation helpful? Give feedback.
All reactions