
Last chance! 50% off unlimited learning
Sale ends in
open source code of a function in a loaded or specified package on github.com/cran or github.com/wch/r-source
funSource(x, character.only = is.character(x), trydirect = TRUE)
function name, with or without quotation marks
If TRUE, look for SomeFun instead of MyFun if
MyFun <- "SomeFun". DEFAULT: is.character(x)
If TRUE, try direct urls to files x.R
and x.r
. DEFAULT: TRUE
links that are also opened with browseURL
https://github.com/brry/rskey to add this as a keyboard shortcut
# NOT RUN {
## browser windows should not be openend in CRAN checks
library("berryFunctions")
funSource(colPoints)
funSource("head")
funSource("require", trydirect=FALSE)
funSource(earthDist)
funSource(OSMscale::earthDist)
funSource("OSMscale::earthDist")
# }
# NOT RUN {
# }
# NOT RUN {
# developmental testing
require(plotrix); require(scales)
funSource(rescale
tail <- function(...) stop("This is a dummy function. Type: rm(tail)")
funSource("tail")
rm(tail)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab