sail: Create a source abstraction interface layer (SAIL) object.

Description Usage Arguments Value

View source: R/sail.R

Description

This function returns an object of class sail which behaves like fail, but is indented for loading and saving R source code files.

Usage

1
2
sail(path = getwd(), extension = "R", all.files = FALSE,
  use.cache = FALSE, simplify = TRUE, suppressMessages = FALSE)

Arguments

path

[character(1)]
Path to work in, will be created if it does not exists.

extension

[character(1)]
File extension to work with. Default is “R”.

all.files

[logical(1)]
Also include hidden files, i.e. files whose name start with a dot (“.”). Default is FALSE.

use.cache

[logical(1)]
Use a memory cache per global default. Global option which can locally be overwritten in most functions. Default is FALSE

simplify

[character(1)]
If only one object is defined in a sourced R file, should the return value be simplified? If set to TRUE, instead of a list containing one element the object itself will be returned.

suppressMessages

[logical(1)]
Wrap the sys.source command into suppressMessages and link[base]{suppressPackageStartupMessages}? Default is FALSE, i.e. you will see regular output of sourced scripts.

Value

Object of class sail. See the documentation of fail for details.


mllg/fail documentation built on May 23, 2019, 3:02 a.m.