roxygenize('.') fails on case-sensitive file systems #141

Closed
krlmlr opened this Issue Mar 21, 2013 · 0 comments

Comments

Projects
None yet
1 participant
Contributor

krlmlr commented Mar 21, 2013

Reason: The files in man-roxygen have the extension *.r, but roxygen2 looks for the .R extension as seen in the code of template_find which is called according to the traceback:

Error: Can not find template ply
> traceback()
10: stop("Can not find template ", template_name, call. = FALSE)
9: FUN(c("ply", "a-", "-_")[[1L]], ...)
8: vapply(templates, template_find, base_path = base_path, FUN.VALUE = character(1), 
       USE.NAMES = FALSE)
7: process_templates(partitum, base_path)
6: roclet_rd_one(partitum, base_path)
5: force(code)
4: rd_proc_cache$compute(key, roclet_rd_one(partitum, base_path))
3: roc_process.had(roc, parsed, roxygen.dir)
2: roc_process(roc, parsed, roxygen.dir)
1: roxygenize(".")
> roxygen2:::template_find
function (base_path, template_name) 
{
    path <- file.path(base_path, "man-roxygen", str_c(template_name, 
        ".R"))
    if (!file.exists(path)) {
        stop("Can not find template ", template_name, call. = FALSE)
    }
    path
}
<environment: namespace:roxygen2>

While this perhaps should be fixed in roxygen2, simply renaming the files solves the issue also for older versions of roxygen2.

@hadley hadley closed this in 01799dc Mar 22, 2013

krlmlr added a commit to krlmlr/plyr that referenced this issue Jul 6, 2013

wibeasley added a commit to wibeasley/plyr that referenced this issue Jan 3, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment