File: data-table.md

package info (click to toggle)
r-cran-usethis 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,228 kB
  • sloc: sh: 26; makefile: 17; cpp: 6; ansic: 3
file content (44 lines) | stat: -rw-r--r-- 1,638 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# use_data_table() Imports data.table

    Code
      roxygen_ns_show()
    Output
      [1] "#' @importFrom data.table .BY"       
      [2] "#' @importFrom data.table .EACHI"    
      [3] "#' @importFrom data.table .GRP"      
      [4] "#' @importFrom data.table .I"        
      [5] "#' @importFrom data.table .N"        
      [6] "#' @importFrom data.table .NGRP"     
      [7] "#' @importFrom data.table .SD"       
      [8] "#' @importFrom data.table :="        
      [9] "#' @importFrom data.table data.table"

# use_data_table() blocks use of Depends

    Code
      use_data_table()
    Message
      ! data.table should be in 'Imports' or 'Suggests', not 'Depends'!
      v Removing data.table from 'Depends'.
      v Adding data.table to 'Imports' field in DESCRIPTION.
      v Adding "@importFrom data.table data.table", "@importFrom data.table :=",
        "@importFrom data.table .SD", "@importFrom data.table .BY", "@importFrom
        data.table .N", "@importFrom data.table .I", "@importFrom data.table .GRP",
        "@importFrom data.table .NGRP", and "@importFrom data.table .EACHI" to
        'R/{TESTPKG}-package.R'.

---

    Code
      roxygen_ns_show()
    Output
      [1] "#' @importFrom data.table .BY"       
      [2] "#' @importFrom data.table .EACHI"    
      [3] "#' @importFrom data.table .GRP"      
      [4] "#' @importFrom data.table .I"        
      [5] "#' @importFrom data.table .N"        
      [6] "#' @importFrom data.table .NGRP"     
      [7] "#' @importFrom data.table .SD"       
      [8] "#' @importFrom data.table :="        
      [9] "#' @importFrom data.table data.table"