build_pkg_site.R

writeLines("destination: docs", "_pkgdown.yml")
if(file.exists(".Rbuildignore")) {
	ln = readLines(".Rbuildignore")
	if(!any(ln == "^_pkgdown\\.yml$")) {
		ln = c(ln, "^_pkgdown\\.yml$")
	}
	if(!any(ln == "^docs$")) {
		ln = c(ln, "^docs$")
	}
	if(!any(ln == "^pkgdown$")) {
		ln = c(ln, "^pkgdown$")
	}
	if(!any(ln == "build_pkg_site.R")) {
		ln = c(ln, "build_pkg_site.R")
	}
	writeLines(ln, ".Rbuildignore")
} else {
	writeLines("
^_pkgdown\\.yml$
^docs$
^pkgdown$", ".Rbuildignore")
}

pkgdown::build_site(run_dont_run = FALSE)
jokergoo/GeneSummary documentation built on Sept. 29, 2023, 1:01 p.m.