Skip to content

Feature request: Optional parameter "chunkname" #38

@sigbertklinke

Description

@sigbertklinke

Hi,

instead of using the filename for the chunks, I wanted use the basename(dirname(filename)).

Therefore my suggestion:

name_chunks <- function (path, chunkname=NULL, unname = FALSE) {
...
  if (no_unnamed > 0) {
    if (is.null(chunkname)) {
      filename <- fs::path_ext_remove(path)
      filename <- fs::path_file(filename)
    } else {
      filename <- chunkname
    }
    filename <- namer:::clean_latex_special_characters(filename)
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions