-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# avoid parsing examples in scripts | ||
setHook(packageEvent("pkgdown", "onLoad"), function(...) { | ||
assignInNamespace("can_parse", function (x) TRUE, "pkgdown") | ||
}) | ||
|
||
# avoid highlighting errors in scripts | ||
setHook(packageEvent("pkgdown", "onLoad"), function(...) { | ||
fun <- getFromNamespace("highlight_examples", asNamespace("pkgdown")) | ||
assignInNamespace("highlight_examples", function (code, topic, env) { | ||
if (topic == "scripts") | ||
pkgdown:::highlight_text(code) | ||
else fun(code, topic, env) | ||
}, "pkgdown") | ||
}) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.