igraph / rigraph

igraph R package
https://r.igraph.org
544 stars 200 forks source link

ensure only roxygen2 is used #1424

Open maelle opened 3 months ago

maelle commented 3 months ago
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 commented 3 months ago

these are the only two.