* using log directory 'd:/Rcompile/CRANpkg/local/4.6/OSMscale.Rcheck' * using R Under development (unstable) (2025-09-24 r88873 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'OSMscale/DESCRIPTION' ... OK * this is package 'OSMscale' version '0.5.22' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'OSMscale' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [9s] OK * checking whether the package can be loaded with stated dependencies ... [9s] OK * checking whether the package can be unloaded cleanly ... [9s] OK * checking whether the namespace can be loaded with stated dependencies ... [8s] OK * checking whether the namespace can be unloaded cleanly ... [10s] OK * checking loading without being on the library search path ... [9s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [20s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [11s] ERROR Running examples in 'OSMscale-Ex.R' failed The error most likely occurred in: > ### Name: earthDist > ### Title: distance between lat-long coordinates > ### Aliases: earthDist > ### Keywords: spatial > > ### ** Examples > > d <- read.table(header=TRUE, sep=",", text=" + lat, long + 52.514687, 13.350012 # Berlin + 51.503162, -0.131082 # London + 35.685024, 139.753365") # Tokio > earthDist(lat, long, d) # from Berlin to L and T: 928 and 8922 km [1] 0.0000 928.1557 8922.2195 > earthDist(lat, long, d, i=2) # from London to B and T: 928 and 9562 km [1] 928.1557 0.0000 9561.9303 > > # slightly different with other formulas: > # install.packages("geosphere") > # geosphere::distHaversine(as.matrix(d[1,2:1]), as.matrix(d[2,2:1])) / 1000 > > # Distance along vector of points: > d <- data.frame(lat=21:50, long=1:30) > pointsMap(lat,long,d, zoom=2, proj=putm(1:30) ) Downloading map with extend -0.45, 31.45, 19.55, 51.45 ... java.lang.NullPointerException at edu.cens.spatial.RTileController.getTileValues(RTileController.java:109) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at RJavaTools.invokeMethod(RJavaTools.java:399) Error in osmtile(x%%nX, y, zoom, type) : could not obtain tile: 1 1 2 Calls: pointsMap -> -> osmtile Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [9s] OK Running 'testthat.R' [9s] * checking PDF version of manual ... [28s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 1 ERROR