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

Can't have @include as the first directive in a file #1673

Open
mikmart opened this issue Oct 25, 2024 · 1 comment
Open

Can't have @include as the first directive in a file #1673

mikmart opened this issue Oct 25, 2024 · 1 comment

Comments

@mikmart
Copy link
Contributor

mikmart commented Oct 25, 2024

I have two files, foo.R:

#' Foo
#' @name foo
NULL

... and bar.R:

#' @include foo.R

#' Bar
#' @name bar
NULL

Trying to roxygenize this fails to render anything for bar.R:

> roxygen2::roxygenise()
ℹ Loading fooIn topic 'bar.Rd': Skipping; no name and/or title.
Writing foo.Rd

Moving the @include tag in bar.R after the documentation block fixes this, but it would be nice to be able to specify collation order as the first thing in the file.

@mcol
Copy link
Contributor

mcol commented Nov 29, 2024

It's probably enough to do

@include foo.R
NULL

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

No branches or pull requests

2 participants