Re: [R] Terminating a cmd windows from R

2024-08-19 Thread Jiefei Wang
You can use a parallel computing package to do it. I haven't test the code below (as I do not have a long-running batch file) but I think it should work: library(parallel) cl <- makeCluster(1) ## run the command in a child R process clusterEvalQ(cl, { nm_log <- "c:/nm74g64/run/nmfe74" nmi

Re: [R] allequal diff

2024-08-19 Thread SIBYLLE STĂ–CKLI via R-help
Dear Ben and Bert Thanks very much for the interesting discussion Yes that why I was additionally using compareRaster(r1,r2) and then resample (r2, r1) to adapt the extend. library(raster) r1 <- raster("") r2 <- raster("f") compareRaster(r1, r2) extent(r1) extent(r2) r2_resampled <- resample(