@@ -146,25 +146,27 @@ running `roxygen2::parse_file()` on them returns any messages.
146146
147147This hook does not modify files.
148148
149- ** no eval**
149+ ** eval**
150150
151- The ` --no-eval ` flag causes ` roxygen2::parse_file() ` to be run with` env = NULL ` .
152- This means each file will be parsed, but code will not be evaluated - neither
151+ By default, each file will be parsed, but code will not be evaluated - neither
153152any explicit code in the file, nor any ` @eval ` tags within roxygen comments.
154- This can be useful if your files contain anything other than
155- "simple object declarations" (e.g. [ box modules] ( https://github.com/klmr/box/ )
156- containing ` box::use() ` calls). When ` --no-eval ` is missing, this means dependencies
157- of the code to evaluate must be available for pre-commit. You may list these as
158- ` additional_dependencies: ` for the ` parsable-roxygen ` hook in
153+
154+ If your commentary contains ` @eval ` tags which you would prefer to evaluate, you
155+ can specify the ` --eval ` flag, which will cause the file's code to be evaluated
156+ in an environment created by ` roxygen2::env_file() ` . Note that dependencies of
157+ the code to evaluate must be available for pre-commit. You may list these as
158+ ` additional_dependencies: ` for the ` parsable-roxygen ` hook in
159159` .pre-commit-config.yaml ` .
160160
161161Inline R code within roxygen comments (i.e. within backticks) is ** not**
162- evaluated by this hook, whether or not ` --no-eval ` is specified. You would need to run the ` roxygenize ` hook for that.
162+ evaluated by this hook, whether or not ` --eval ` is specified. You would need
163+ to run the ` roxygenize ` hook for that.
163164
164165 id: parsable-roxygen
165- args: [--no- eval]
166+ args: [--eval]
166167
167168This hook was added in version 0.4.3.9000.
169+
168170## ` no-browser-statement `
169171
170172Guarantees you that you don't accidentally commit code with a
0 commit comments