Generic class finder
avail(classy, package = NULL, msg = TRUE)
A class of object (character string, e.g. 'Fleet')
Optional. Names(s) of the package to search for object of class classy
. String
Default is all openMSE
packages. Always searches the global environment as well.
Print messages?
Finds objects of the specified class in the global environment or the openMSE packages.
avail("OM", msg=FALSE)
#> [1] "testOM"
Stocks <- avail("Stock")
#> ✔ Searching for objects of class Stock in package: MSEtool
Fleets <- avail("Fleet")
#> ✔ Searching for objects of class Fleet in package: MSEtool
MPs <- avail("MP")
#> ✔ Searching for objects of class MP in package: MSEtool