powered by
Get the name of the target currently running.
tar_name()
Must be invoked somewhere in the target's command. Only works inside a targets pipeline.
targets
# NOT RUN { tar_target(returns_name, tar_name()) # }
Run the code above in your browser using DataLab