This is a simple R script that dumps all function names from a specified package for easy inclusion into filetypes.R. This is useful if you use a package frequently that is not shipped with base R.
package_dump <- function(name, file = NA, ...) { require(name) if(is.na(file)) file <- paste(name, "dump", sep = ".") cat(ls(paste("package", name, sep = ":")), file = file, ...) }
By default the function will save the list as a space separated file named after the package with a “.dump” extension, but this can be modified with the file argument. From there, simply copy and paste the list into filetypes.R in your geany configuration directory.