Comments (6)
Dear Jemma,
After a full update (my R version and all packages), I can now run your example perfectly, with a very nice output.... so now let's go for the next step, i.e. reproducing the code for my own dataset...! Thank you very much for your help and this nice contribution, will be very helpful to interpolate (in a right way) my data !
Best,
Eric
from ipdw.
Hi Eric - My guess is it's a software version issue. Can you paste the output of devtools::session_info()
? It would also help to know exactly what code is causing that error, is it costrasterGen
?
from ipdw.
Dear Jemma,
Thank you very much for your prompt reply. My issue is related to the line that corresponds to the application of the ipdw function:
final.ipdw <- ipdw(training, costras, range = mean.neighdist * 10, paramlist, overlapped = TRUE)
I am sure I am doing something wrong, but I cannot find where is the issue...
Thank you very much for your time,
Eric
Please find the output from my current R session
setting value
version R version 4.2.1 (2022-06-23 ucrt)
os Windows 10 x64 (build 19045)
system x86_64, mingw32
ui RStudio
language (EN)
collate French_France.utf8
ctype French_France.utf8
tz Europe/Paris
date 2023-03-09
rstudio 2022.12.0+353 Elsbeth Geranium (desktop)
pandoc NA
─ Packages ────────────────────────────────────────────────────────────────────
package * version date (UTC) lib source
abind 1.4-5 2016-07-21 [1] CRAN (R 4.2.0)
assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.2.1)
cachem 1.0.6 2021-08-19 [1] CRAN (R 4.2.1)
callr 3.7.3 2022-11-02 [1] CRAN (R 4.2.2)
class 7.3-20 2022-01-16 [2] CRAN (R 4.2.1)
classInt 0.4-8 2022-09-29 [1] CRAN (R 4.2.1)
cli 3.4.1 2022-09-23 [1] CRAN (R 4.2.1)
codetools 0.2-18 2020-11-04 [2] CRAN (R 4.2.1)
crayon 1.5.2 2022-09-29 [1] CRAN (R 4.2.2)
DBI 1.1.3 2022-06-18 [1] CRAN (R 4.2.1)
deldir 1.0-6 2021-10-23 [1] CRAN (R 4.2.0)
devtools 2.4.5 2022-10-11 [1] CRAN (R 4.2.2)
digest 0.6.30 2022-10-18 [1] CRAN (R 4.2.2)
dplyr 1.0.10 2022-09-01 [1] CRAN (R 4.2.1)
e1071 1.7-12 2022-10-24 [1] CRAN (R 4.2.2)
ellipsis 0.3.2 2021-04-29 [1] CRAN (R 4.2.1)
fansi 1.0.3 2022-03-24 [1] CRAN (R 4.2.1)
fastmap 1.1.0 2021-01-25 [1] CRAN (R 4.2.1)
fs 1.5.2 2021-12-08 [1] CRAN (R 4.2.1)
gdata 2.18.0.1 2022-05-10 [1] CRAN (R 4.2.1)
gdistance * 1.6 2022-10-10 [1] CRAN (R 4.2.2)
generics 0.1.3 2022-07-05 [1] CRAN (R 4.2.1)
glue 1.6.2 2022-02-24 [1] CRAN (R 4.2.1)
goftest 1.2-3 2021-10-07 [1] CRAN (R 4.2.0)
gtools 3.9.4 2022-11-27 [1] CRAN (R 4.2.2)
htmltools 0.5.4 2022-12-07 [1] CRAN (R 4.2.2)
htmlwidgets 1.6.1 2023-01-07 [1] CRAN (R 4.2.2)
httpuv 1.6.6 2022-09-08 [1] CRAN (R 4.2.1)
igraph * 1.3.5 2022-09-22 [1] CRAN (R 4.2.2)
ipdw * 2.0-0 2023-01-05 [1] CRAN (R 4.2.2)
KernSmooth 2.23-20 2021-05-03 [2] CRAN (R 4.2.1)
later 1.3.0 2021-08-18 [1] CRAN (R 4.2.1)
lattice 0.20-45 2021-09-22 [2] CRAN (R 4.2.1)
lifecycle 1.0.3 2022-10-07 [1] CRAN (R 4.2.2)
magrittr 2.0.3 2022-03-30 [1] CRAN (R 4.2.1)
Matrix * 1.5-3 2022-11-11 [1] CRAN (R 4.2.2)
memoise 2.0.1 2021-11-26 [1] CRAN (R 4.2.1)
mgcv 1.8-40 2022-03-29 [2] CRAN (R 4.2.1)
mime 0.12 2021-09-28 [1] CRAN (R 4.2.0)
miniUI 0.1.1.1 2018-05-18 [1] CRAN (R 4.2.1)
nlme * 3.1-157 2022-03-25 [2] CRAN (R 4.2.1)
pillar 1.8.1 2022-08-19 [1] CRAN (R 4.2.1)
pkgbuild 1.3.1 2021-12-20 [1] CRAN (R 4.2.1)
pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.2.1)
pkgload 1.3.2 2022-11-16 [1] CRAN (R 4.2.1)
polyclip 1.10-4 2022-10-20 [1] CRAN (R 4.2.1)
prettyunits 1.1.1 2020-01-24 [1] CRAN (R 4.2.1)
processx 3.8.0 2022-10-26 [1] CRAN (R 4.2.2)
profvis 0.3.7 2020-11-02 [1] CRAN (R 4.2.1)
promises 1.2.0.1 2021-02-11 [1] CRAN (R 4.2.1)
proxy 0.4-27 2022-06-09 [1] CRAN (R 4.2.1)
ps 1.7.2 2022-10-26 [1] CRAN (R 4.2.2)
purrr 0.3.4 2020-04-17 [1] CRAN (R 4.2.1)
R6 2.5.1 2021-08-19 [1] CRAN (R 4.2.1)
raster * 3.6-3 2022-09-18 [1] CRAN (R 4.2.1)
Rcpp 1.0.10 2023-01-22 [1] CRAN (R 4.2.2)
remotes 2.4.2 2021-11-30 [1] CRAN (R 4.2.2)
rgdal 1.6-2 2022-11-09 [1] CRAN (R 4.2.2)
rlang 1.0.6 2022-09-24 [1] CRAN (R 4.2.1)
rpart * 4.1.16 2022-01-24 [2] CRAN (R 4.2.1)
rstudioapi 0.14 2022-08-22 [1] CRAN (R 4.2.1)
sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.2.1)
sf * 1.0-9 2022-11-08 [1] CRAN (R 4.2.2)
shiny 1.7.3 2022-10-25 [1] CRAN (R 4.2.2)
sp * 1.5-0 2022-06-05 [1] CRAN (R 4.2.1)
spatstat * 3.0-2 2022-11-10 [1] CRAN (R 4.2.2)
spatstat.data * 3.0-0 2022-10-21 [1] CRAN (R 4.2.2)
spatstat.explore * 3.0-5 2022-11-10 [1] CRAN (R 4.2.2)
spatstat.geom * 3.0-3 2022-10-25 [1] CRAN (R 4.2.2)
spatstat.linnet * 3.0-3 2022-11-15 [1] CRAN (R 4.2.1)
spatstat.model * 3.0-2 2022-11-07 [1] CRAN (R 4.2.2)
spatstat.random * 3.0-1 2022-11-03 [1] CRAN (R 4.2.2)
spatstat.sparse 3.0-0 2022-10-21 [1] CRAN (R 4.2.2)
spatstat.utils 3.0-1 2022-10-19 [1] CRAN (R 4.2.2)
stringi 1.7.8 2022-07-11 [1] CRAN (R 4.2.1)
stringr 1.5.0 2022-12-02 [1] CRAN (R 4.2.2)
tensor 1.5 2012-05-05 [1] CRAN (R 4.2.0)
terra 1.6-17 2022-09-10 [1] CRAN (R 4.2.1)
tibble 3.1.8 2022-07-22 [1] CRAN (R 4.2.1)
tidyselect 1.2.0 2022-10-10 [1] CRAN (R 4.2.2)
units 0.8-0 2022-02-05 [1] CRAN (R 4.2.1)
urlchecker 1.0.1 2021-11-30 [1] CRAN (R 4.2.1)
usethis 2.1.6 2022-05-25 [1] CRAN (R 4.2.1)
utf8 1.2.2 2021-07-24 [1] CRAN (R 4.2.1)
vctrs 0.5.1 2022-11-16 [1] CRAN (R 4.2.1)
xtable 1.8-4 2019-04-21 [1] CRAN (R 4.2.1)
[1] D:/R/win-library/4.0
[2] C:/Program Files/R/R-4.2.1/library
from ipdw.
Can you also post the output of sf::sf_extSoftVersion()
?
from ipdw.
Sure! This is the output:
GEOS GDAL proj.4 GDAL_with_GEOS USE_PROJ_H
"3.9.3" "3.5.2" "8.2.1" "true" "true"
PROJ
"8.2.1"
from ipdw.
Hmm, I couldn't reproduce the error and my dependencies are almost identical except for minor version differences in:
packages.loadedversion
raster 3.6-20
sp 1.6-0
terra 1.7-18
Can you try updating those? Probably the easiest way would be to run remotes::install_github("jsta/ipdw")
from ipdw.
Related Issues (20)
- testthat warnings on raster object formation HOT 2
- Reference Stachelek and Madden 2015 in vignette
- Add CRAN badge
- Add resolution argument to costrasterGen
- paramList arg is ambiguous
- ipdw output land area should be masked out as NA
- Add ability to set a custom distance weighting power
- Add ability to drop any areas that have a number of overlapping layers below some threshold
- Save power and range setting in output objects
- Generalize beyond Kattegat
- Check whether paramlist is available before running ipdw
- Show ggplot style outputs in vignette HOT 1
- Explain the projstr parameter on costrasterGen
- Add informative error msg if costrasterGen extent is misspelled as `pols`
- Convert package to sf HOT 1
- costrasterGen CRAN error HOT 1
- Python version of ipdw HOT 2
- Please remove dependencies on **rgdal**, **rgeos**, and/or **maptools** HOT 1
- Questions about pathdistGen() and ipdwInterp() HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipdw.