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[] <- NA should 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.
-
Hi,
My code throws warnings that are excessively hard to track because the warning are thrown only within
future
and the origin of the problem is lost. This issue arises when I initialize aRasterLayer
withNAs
With 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:
future
behaving like a regular call to get rid of this specific warning that is never raise out of this specific case AFAIKfuture
so I can track where the problem come from and fix it.Thanks
Beta Was this translation helpful? Give feedback.
All reactions