GithubHelp home page GithubHelp logo

rubak / spatstat.revdep Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 3.0 123.65 MB

Reverse dependencies of spatstat

R 79.76% Shell 0.01% M4 0.09% C++ 15.53% C 3.47% CSS 0.01% AGS Script 0.01% Fortran 0.91% TeX 0.07% Dockerfile 0.15%

spatstat.revdep's People

Contributors

rubak avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

spatstat.revdep's Issues

Installing development versions of dependencies

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.

Function to find correct sub-package

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.