R: Source many R files

Source many R files {Rfast} | R Documentation

## Source many R files

### Description

Source many R/Rd files.

### Usage

    sourceR(path,local=FALSE,encode = "UTF-8",print.errors=FALSE)
    sourceRd(path,print.errors=FALSE)

### Arguments

`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.

### Details

Reads many R files and source them.

### Value

Returns the files that had produced errors during source.

### Author(s)

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.

### See Also

`read.directory, AddToNamespace`

### Examples

    # 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) )

[Package Rfast version 2.0.4 Index]