View source: R/system_and_package.R
Source many R files | R Documentation |
Source many R/Rd files.
sourceR(path,local=FALSE,encode = "UTF-8",print.errors=FALSE)
sourceRd(path,print.errors=FALSE)
path |
An full path to the directory where R file are. |
local |
TRUE, FALSE or an environment, determining where the parsed expressions are evaluated. FALSE (the default) corresponds to the user's workspace (the global environment) and TRUE to the environment from which source is called. |
encode |
Character vector. The encoding(s) to be assumed when file is a character string: see file. A possible value is "unknown" when the encoding is guessed: see the "Encodings" section. |
print.errors |
A boolean value (TRUE/FALSE) for printing the errors, if exists, for every file. |
Reads many R files and source them.
Returns the files that had produced errors during source.
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.
read.directory, AddToNamespace
# for example: path="C:\some_file\R\" where is R files are
# system.time( a<-sourceR(path) )
# for example: path="C:\some_file\man\" where is Rd files are
# system.time( a<-sourceRd(path) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.