Skip to content

@templateVar doesn't work properly #160

@bronaugh

Description

@bronaugh

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, as.is = TRUE)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions