Comment Headers in RStudio Sources – RStudio Support
Starting from RStudio 1.2.937, the following file sources support custom commands while sourcing them: R, D3 and SQL file sources. This is accomplished by specifing a !source or !preview comment he...