tests/testthat/references/extract.R

# ------------------------------------------------------------------------------
# dollar

foo$bar
foo$bar$baz
foo$bar@baz
foo$bar()
foo$"bar"
foo$bar()$baz[[1]]$bam

# ------------------------------------------------------------------------------
# dollar no rhs

foo$

# ------------------------------------------------------------------------------
# slot

foo@bar
foo@bar$baz
foo@bar()
foo@"bar"

# ------------------------------------------------------------------------------
# slot no rhs

foo@

Try the treesitter.r package in your browser

Any scripts or data that you put into this service are public.

treesitter.r documentation built on Sept. 12, 2024, 7:06 a.m.