-
Notifications
You must be signed in to change notification settings - Fork 235
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
(new to 5.0) @export fails to export if there is another #' before the function/object #415
Comments
Could you please provide a reproducible example? |
sure, see ttriche/roxpkg , specifically hello.R and goodbye.R The comment about @export spanning more than one line seems to be new(ish) and wasn't getting thrown previously (in the package I was working on earlier), just mysteriously not exporting anything. |
Could you please include a reproducible example inline? |
How? The problem occurs when I run devtools::document() or That's also how I was most easily able to reproduce the problem. I'm not The repo that I threw up demonstrates it in the simplest way I could think --t On Wed, Oct 28, 2015 at 3:25 PM, Hadley Wickham notifications@github.com
|
Copy and paste the code from your repo into this issue. Or at least paste a link to the file within the repo. |
In the past, there was no difference between the following re: NAMESPACE. Now, there is. #' Hi, I'm exported!
#'
#' @param txt what to say
#'
#' @export
hello <- function(txt = "world") {
cat("Hello, ", txt, "\n")
} #' Hi, I'm not exported!
#'
#' @param txt what to say
#'
#' @export
#'
goodbye <- function(txt = "world") {
cat("Goodbye, ", txt, "\n")
} |
Thanks - that's helpful. The fewer links I need to follow, the faster I can fix the problem - in future, it would also be helpful if you include the text of the error message. That makes it even faster for me to track down. |
Thanks! --t
|
@hadley @klutometis This is still not working for me. I have to move Intriguingly, the bug is itself buggy. That is, it doesn't reproduce consistently. For example
|
Observing the same behavior as "I have to move #' @export above another roxygen2 tag to make it work." with current version 6.1.0.9000. |
@zkurtz commenting on closed issues usually will not get you very far. Can you please open a new issue with a reproducible example? Or some of the examples above fail for you? |
This is new. I can work around it by removing said formatting, but it seems rather brittle and flaky.
The text was updated successfully, but these errors were encountered: