srclocs | R Documentation |
Build a length four source location from a length two source location. The starting column on the first line is assumed to be 1, and the final column is taken to be the length of the line if the source file exists, or 1 as a fallback.
srclocs(x, file)
x |
A numeric vector of at least length 2 |
file |
A file to use to determine the length of the final line |
A numeric vector similar to a utils::getSrcLocation
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.