When implementing a function that depends on an R package (such as spatial lag, for instance), it is necessary to check if such package exists. Otherwise, it is necessary to install such package in R. Think about how to handle this kind of problem in TerraME. It might be interesting to install such package automatically, but at least a warning should be shown.
When implementing a function that depends on an R package (such as spatial lag, for instance), it is necessary to check if such package exists. Otherwise, it is necessary to install such package in R. Think about how to handle this kind of problem in TerraME. It might be interesting to install such package automatically, but at least a warning should be shown.