Get path to current R script

PHOTO EMBED

Mon Oct 16 2023 15:51:57 GMT+0000 (Coordinated Universal Time)

Saved by @vs #r

rstudioapi::getSourceEditorContext()$path
content_copyCOPY