Re: [R] MAC version 10

2021-07-11 Thread Jeffrey Hunter
Hello Farrah, I too am running macOS Catalina 10.15.7. The age of your Mac shouldn’t matter. >From the website I provided, you should download the file R-4.1.0.pkg. After >successfully downloading the package to your Downloads folder, simply >double-click on the file. Thanks, Jeff > On Jul

Re: [R] rWind: Error in if (is.numeric(v) && any(v < 0)) { : missing value where TRUE/FALSE needed

2021-07-11 Thread Bert Gunter
Further questions would be better sent to: https://stat.ethz.ch/mailman/listinfo/r-sig-geo Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sun, Jul 11, 2021 at

Re: [R] rWind: Error in if (is.numeric(v) && any(v < 0)) { : missing value where TRUE/FALSE needed

2021-07-11 Thread Enzo Cocca
Hi Eric, I know but I can't understand where is the error. the function shortestpath wants: x="TransitionLayer", origin="Coords", goal="Coords" or x="TransitionLayer", origin="numeric", goal="numeric" or x="TransitionLayer", origin="SpatialPointsDataFrame", goal="SpatialPointsDataFrame" so I fol

Re: [R] rWind: Error in if (is.numeric(v) && any(v < 0)) { : missing value where TRUE/FALSE needed

2021-07-11 Thread Eric Berger
This error can result from v with NAs. e.g. to reproduce the error message > v <- as.numeric(NA) > if (is.numeric(v) && any(v < 0)) cat("hello world\n") see also https://stackoverflow.com/questions/7355187/error-in-if-while-condition-missing-value-where-true-false-needed HTH, Eric [[al

[R] rWind: Error in if (is.numeric(v) && any(v < 0)) { : missing value where TRUE/FALSE needed

2021-07-11 Thread Enzo Cocca
Hi, I'm trying to work with rWind but when try to create a shortestpath (From point a to B with gdistance package) I have this error: Error in if (is.numeric(v) && any(v < 0)) { : missing value where TRUE/FALSE needed so this is the code: library(rWind) library(raster) library(gdistance) w<-