Elektrine lite

← Feed

@danwwilson@rstats.me

Post #2083746

2024-12-05 00:12 UTC

@lwpembleton I have this in a package: ``` tar_load_selection <- function(..., store = targets::tar_config_get("store")) { target_names <- as.character(as.list(substitute(...()))) targets::tar_load(target_names, store = store, envir = globalenv()) } ``` keybinding like: ``` { "key": "l", “name": "load target at cursor", "type": "command", "command": "r.runCommandWithSelectionOrWord", "args": “tdctargets::tar_load_selection($$)" }, ```

Replies (1)