Returns a list of track variables for a track.
gtrack.var.ls(
track = NULL,
pattern = "",
ignore.case = FALSE,
perl = FALSE,
fixed = FALSE,
useBytes = FALSE
)
An array that contains the names of track variables.
This function returns a list of track variables of a track that match the pattern (see 'grep'). If called without any arguments all track variables of a track are returned.
gdb.init_examples()
gtrack.var.ls("sparse_track")
#> character(0)
gtrack.var.set("sparse_track", "test_var1", 1:10)
gtrack.var.set("sparse_track", "test_var2", "v")
gtrack.var.ls("sparse_track")
#> [1] "test_var1" "test_var2"
gtrack.var.ls("sparse_track", pattern = "2")
#> [1] "test_var2"
gtrack.var.rm("sparse_track", "test_var1")
gtrack.var.rm("sparse_track", "test_var2")