Skip to content

[help] compatibility with sweave/knitr ? #1295

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

You must be logged in to vote

Do you have a reprex?

On my end tar_make() produces a file.tex file with this pipeline:

# _targets.R
library(targets)
library(tarchetypes)
list(
  targets::tar_target(data, data.frame(x = seq_len(26), y = letters)),
  tarchetypes::tar_knit(report, "file.Rnw")
)

file.Rnw:

\documentclass{article}

\title{Minimal example}
\author{You}
\date{\today}

\begin{document}

\maketitle

Data:

<<minimal-example, echo=TRUE>>=
targets::tar_read(data)
@

\end{document}

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jrdavalos
Comment options

@wlandau
Comment options

Answer selected by jrdavalos
@jrdavalos
Comment options

@wlandau-lilly
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants