Skip to content
Discussion options

You must be logged in to vote

I currently use the following to hide out whole sections in my reports.

`r if (params$show_private_info) "::: {.content-hidden}"`

Some private information

`r if (params$show_private_info) ":::"`

But project profiles are probably a better solution I've yet to try. They give this example in the docs.

::: {.content-visible when-profile="advanced"}
This content will only appear in the advanced version.
:::

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@r-cheologist
Comment options

Answer selected by r-cheologist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants