jot_open()
andjot_activate()
opens an existing notepad and sets it to active.jot_current()
andjot_active()
return the path to the current notepad.jot_close()
andjot_deactivate()
closes the open notepad, if there is one.
Examples
tf <- tempfile()
jot_new_pad(tf)
jot_open(tf)
jot_active()
#> [1] "/tmp/RtmprKaqWh/file29b226e0c106.yaml"
jot_current()
#> [1] "/tmp/RtmprKaqWh/file29b226e0c106.yaml"
jot_close()
jot_active()
#> [1] ""