R6 class for ships data
R6 class for ships data
new()
data import and calculations
ships$new(path, mem = TRUE)
path
character path to *.rds file
mem
logical save memory? Otherwise, the complete data is stored
ships R6 instance
\dontrun{test <- ships$new(inst/extdata/ships.rds)}
display_ship()
Display Leaflet map
ships$display_ship(sel_type, sel_name)
sel_type
selected ship type
sel_name
selected ship name
\dontrun{test$display_ship("Cargo", "KAROLI")}
clone()
The objects of this class are cloneable with this method.
ships$clone(deep = FALSE)
deep
Whether to make a deep clone.
1 2 3 4 5 6 7 8 9 10 11 | ## ------------------------------------------------
## Method `ships$new`
## ------------------------------------------------
## Not run: test <- ships$new(inst/extdata/ships.rds)
## ------------------------------------------------
## Method `ships$display_ship`
## ------------------------------------------------
## Not run: test$display_ship("Cargo", "KAROLI")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.