rubak / spatstat.revdep Goto Github PK
View Code? Open in Web Editor NEWReverse dependencies of spatstat
Reverse dependencies of spatstat
Packages updating to spatstat 2.0 may need development versions of other packages to check their package. In particular sf
and maptools
may be useful if data in sf
/sp
format is used. In this issue I hope maintainers will write instructions on how to obtain the development version of their package if they have any reverse dependencies that may benefit from this. I will start by listing the ones I immediately know of. Then you can simply open this issue in your browser and search for the package name you need and find the instructions. If you can't find the package you are looking for, you can either download the package sources from this repository, and build and install the package from those, or you can send me an email and I will try to help you.
Hi,
Thank you very much for providing so much help and information about how to adapt a package to the new spatstat
structure! That is very helpful.
I came up with a short function that returns the correct sub-packages for a vector of function names. Maybe this is also of help for other users? I currently don't check if spatstat
is already installed, but that could be added just at the beginning of the function.
search_fun <- function(fct) {
# vector with sub-packages
spatstat_packages <- c("spatstat.utils", "spatstat.data", "spatstat.sparse",
"spatstat.geom", "spatstat.core", "spatstat.linnet")
# get namespace of all sub-packages
full_namespace <- lapply(spatstat_packages, function(i) cbind(getNamespaceExports(i), i))
# combine to one matrix
full_namespace <- do.call(what = rbind, args = full_namespace)
# return only rows with functions
result <- matrix(full_namespace[full_namespace[, 1] %in% fct, ], ncol = 2)
return(result)
}
search_fun(fct = c("pcf", "as.ppp"))
#> [,1] [,2]
#> [1,] "as.ppp" "spatstat.geom"
#> [2,] "pcf" "spatstat.core"
search_fun(fct = "envelope")
#> [,1] [,2]
#> [1,] "envelope" "spatstat.core"
Created on 2020-12-22 by the reprex package (v0.3.0)
Cheers,
Max
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.