docstring icon indicating copy to clipboard operation
docstring copied to clipboard

docstring not working on functions starting with dot(.)

Open Jiayou-Chao opened this issue 1 year ago • 0 comments

.test <- function(x) {
  #' A test function
  #' @param x a number
  return(x+1)
}

test <- function(x) {
  #' A test function
  #' @param x a number
  return(x+1)
}

docstring(test) works but docstring(.test) throws an error:

The specified rdFile 'AppData\Local\Temp\RtmpUPOF2L/TempPackage/man/.test.Rd' does not exist.

Jiayou-Chao avatar Nov 23 '23 15:11 Jiayou-Chao