Skip to content

[help] Functions used in an Rmd that's rendered with tar_render() appear unused in tar_visnetwork() graph #1361

Closed Answered by wlandau
brndngrhm asked this question in Help
Discussion options

You must be logged in to vote

For a tar_render() report, the only tracked dependencies are the upstream targets marked with tar_load() and/or tar_read(). If you find yourself using custom functions, it's usually better to create a few targets with those functions and then load them into the report, or if they are not used in any other targets, maybe include those functions in the report inline.

I don't have plans to change how tar_render() registers dependencies. One reason is to keep things consistent with tar_quarto(). Since Quarto runs in a separate process outside R, it does not automatically know about the global functions in a pipeline.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brndngrhm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants