File: aaa.R

package info (click to toggle)
r-cran-pkgload 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,164 kB
  • sloc: sh: 13; cpp: 9; ansic: 8; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 218 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#' @import rlang
NULL

onload_assign <-
  local({
    names <- character()
    funs <- list()
    function(name, x) {
      names[length(names) + 1] <<- name
      funs[[length(funs) + 1]] <<- substitute(x)
    }
  })