File: helpers-misc.md

package info (click to toggle)
r-cran-tidyselect 1.2.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 616 kB
  • sloc: sh: 13; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# last_col() checks its inputs

    Code
      last_col(Inf, letters[1:3])
    Condition
      Error in `last_col()`:
      ! `offset` (Inf) must be smaller than the number of columns (3).
    Code
      last_col(3, letters[1:3])
    Condition
      Error in `last_col()`:
      ! `offset` (3) must be smaller than the number of columns (3).
    Code
      last_col(0, character())
    Condition
      Error in `last_col()`:
      ! Can't select last column when input is empty.
    Code
      last_col(1:2, letters[1:3])
    Condition
      Error in `last_col()`:
      ! `offset` must be a single integer, not an integer vector.