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

@templateVar doesn't work properly #160

bronaugh opened this issue Dec 4, 2013 · 0 comments

@templateVar doesn't work properly #160

bronaugh opened this issue Dec 4, 2013 · 0 comments


Copy link

@bronaugh bronaugh commented Dec 4, 2013

Using @templateVar doesn't assign to a variable named by the specified name; it assigns to a variable named templateVar (because the names in partitum are tag names and propagate through).

The solution is simple: set the names to the names they should be in template.R:

  var_tags <- partitum[names(partitum) == "templateVar"]
  vars <- lapply(var_tags, "[[", "description")
+  names(vars) <- sapply(var_tags, "[[", "name")
  vars <- lapply(vars, type.convert, = TRUE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant