Nothing
Code
location(1L)
Condition
Error:
! 'path' must be a non-NA and non-empty character of length 1.
Code
location(line1 = "")
Condition
Error:
! 'line1' must be a non-empty integer vector of non-NA values.
Code
location(line1 = 0L)
Condition
Error:
! all values passed to 'line1', 'col1', 'line2', and 'col2' must be non-NA numeric values in the range [1, Inf).
Code
location(col1 = "")
Condition
Error:
! 'col1' must be a non-empty integer vector of non-NA values.
Code
location(col1 = 0L)
Condition
Error:
! all values passed to 'line1', 'col1', 'line2', and 'col2' must be non-NA numeric values in the range [1, Inf).
Code
location(line2 = "")
Condition
Error:
! 'line2' must be a non-empty integer vector of non-NA values.
Code
location(line2 = 0L)
Condition
Error:
! all values passed to 'line1', 'col1', 'line2', and 'col2' must be non-NA numeric values in the range [1, Inf).
Code
location(col2 = "")
Condition
Error:
! 'col2' must be a non-empty integer vector of non-NA values.
Code
location(col2 = 0L)
Condition
Error:
! all values passed to 'line1', 'col1', 'line2', and 'col2' must be non-NA numeric values in the range [1, Inf).
Code
location(line1 = c(1L, 2L))
Condition
Error:
! line1', 'col1', 'line2', and 'col2' must all have the same length.
Code
print(loc1, "short")
Output
<Location>
Path: tests/testthat/my-test-file
Ranges: Ln 1, Col 2 @ Ln 3, Col 4
Code
print(loc2, "long")
Output
<Location>
Path: tests/testthat/my-test-file
Ranges:
Ln 1, Col 22 @ Ln 10, Col 1
Ln 11, Col 222 @ Ln 3333, Col 4
Code
c(loc1, 1L, loc2)
Condition
Error:
! values passed to '...' must all be 'Location' objects.
Code
c(location("a"), location("b"))
Condition
Error:
! all 'path' must be equal in order to combine 'Location' objects.
Code
merge_locations(loc1, 1L, loc2)
Condition
Error:
! values passed to '...' must all be 'Location' objects.
Code
range_format(1L)
Condition
Error:
! 'x' must be a 'Location' object.
Code
range_parse(1L)
Condition
Error:
! 'ranges' must be a non-empty character vector of non-NA values.
Code
range_is_parseable(1L)
Condition
Error:
! 'ranges' must be a non-empty character vector of non-NA values.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.