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

@name should be escaped as well #50

yihui opened this issue Oct 26, 2011 · 0 comments

@name should be escaped as well #50

yihui opened this issue Oct 26, 2011 · 0 comments


Copy link

@yihui yihui commented Oct 26, 2011

Currently aliases are escaped, but names are not. Here is a test case:

roc <- rd_roclet()
test_that("names escaped, not quoted", {
  out <- roc_proc_text(roc, "
    #' Title
    '%a%' <- function(x, y) x + y")[[1]]
  expect_equal(format(get_tag(out, "name")), "\\name{\\%a\\%}\n")
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
2 participants