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

ensure only roxygen2 is used #1424

Open
maelle opened this issue Jul 4, 2024 · 2 comments
Open

ensure only roxygen2 is used #1424

maelle opened this issue Jul 4, 2024 · 2 comments
Labels
documentation upkeep maintenance, infrastructure, and similar

Comments

@maelle
Copy link
Contributor

maelle commented Jul 4, 2024

No description provided.

@maelle maelle added documentation upkeep maintenance, infrastructure, and similar labels Jul 4, 2024
@maelle
Copy link
Contributor Author

maelle commented Jul 4, 2024

rd <- fs::dir_ls("man", glob = "*.Rd")

notice_manual <- function(path) {
  line <- brio::read_lines(path, n = 1)
  if (line != "% Generated by roxygen2: do not edit by hand") {
    return(path)
  } else {
    NULL
  }
}

purrr::compact(purrr::map(rd, notice_manual))
#> $`man/plot.common.Rd`
#> man/plot.common.Rd
#> 
#> $`man/vertex.shape.pie.Rd`
#> man/vertex.shape.pie.Rd

Created on 2024-07-04 with reprex v2.1.0

@krlmlr I thought we had noticed more of those?

@maelle
Copy link
Contributor Author

maelle commented Jul 4, 2024

these are the only two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation upkeep maintenance, infrastructure, and similar
Projects
None yet
Development

No branches or pull requests

1 participant