Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple chunk dependency not working with c() syntax #350

Closed
cmmp opened this issue Jul 25, 2012 · 2 comments · Fixed by #352
Closed

Multiple chunk dependency not working with c() syntax #350

cmmp opened this issue Jul 25, 2012 · 2 comments · Fixed by #352
Labels
bug Bugs
Milestone

Comments

@cmmp
Copy link
Contributor

cmmp commented Jul 25, 2012

A multiple chunk dependency defined with c() does not compile. It works with 'a;b' syntax though.

c() syntax is defined in the manual http://cloud.github.com/downloads/yihui/knitr/knitr-manual.pdf along with 'a;b'

sample file:

\documentclass[a4paper]{article}

\begin{document}

\title{Test}

\maketitle

<<a>>=
x = 1
@ 

<<b>>=
y = 2
@ 

\section{Test}

<<c, dependson=c('a','b')>>=
z = x + y
@ 

\end{document}

output error:

Error in for (i in sc_split(deps)) dep_list$set(structure(list(c(dep_list$get(i),  : 
  invalid for() loop sequence
Calls: knit ... process_file -> split_file -> lapply -> FUN -> parse_block
Execution halted

@yihui
Copy link
Owner

yihui commented Jul 25, 2012

Thanks for the report. I actually do not like the old a;b syntax and c('a', 'b') makes me feel much better.

@cmmp cmmp mentioned this issue Jul 25, 2012
@yihui yihui closed this as completed in 316af5f Jul 25, 2012
yihui added a commit that referenced this issue Jul 25, 2012
yihui added a commit that referenced this issue Jul 25, 2012
@github-actions
Copy link

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants