Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

extend_if_comment

Find the index of the last comment in the sequence of comments-only tokens after the token that has position pos in pd.


Description

Find the index of the last comment in the sequence of comments-only tokens after the token that has position pos in pd.

Usage

extend_if_comment(pd, pos)

Arguments

pd

A parse table.

pos

The position of the token to start the search from.


styler

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.