Dasonk / docstring

Provides docstring like functionality to R functions without requiring the need to create a package.
57 stars 6 forks source link

docstring not working on functions starting with dot(.) #36

Open Jiayou-Chao opened 11 months ago

Jiayou-Chao commented 11 months ago
.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.