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

Error with definition of top-level vector and @rdname #165

Closed
kwstat opened this issue Dec 10, 2013 · 1 comment
Closed

Error with definition of top-level vector and @rdname #165

kwstat opened this issue Dec 10, 2013 · 1 comment

Comments

@kwstat
Copy link

@kwstat kwstat commented Dec 10, 2013

I'm getting an error with top-level (non-function definition) code that also uses @rdname. This is my best guess at the problem, but the real issue could be my code or understanding...

# With the first @rdname is included, roxygen errs with this message:
# object 'blue' of mode 'function' was not found
# Without the first @rdname, it errs on 'gray70'

##' @export
##' @rdname kwcolors
pi2 <- "blue"

##' @rdname kwcolors
##' @export
cols12 <- c("gray70","black","#A6CEE3","#1F78B4","#B2DF8A","#33A02C",
           "#FB9A99","#E31A1C","#FDBF6F","#FF7F00","#CAB2D6","#6A3D9A")
@hadley
Copy link
Member

@hadley hadley commented Dec 10, 2013

Thanks. I'll take a look. A minimal test case is:

  #' @rdname xy
  x <- 'x'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants