srclocs {testex}R Documentation

Build a source location from a minimal numeric vector

Description

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.

Usage

srclocs(x, file)

Arguments

x

A numeric vector of at least length 2

file

A file to use to determine the length of the final line

Value

A numeric vector similar to a utils::getSrcLocation object


[Package testex version 0.2.0 Index]