data_types: List recognized file formats (types) for read() and write()

View source: R/data_types.R

data_typesR Documentation

List recognized file formats (types) for read() and write()

Description

Display information about data types that can read() and write() can use, as well as, the original functions that are delegated (see they respective help pages for more info and to know which additional parameters can be used in read() and write()).

Usage

data_types(types_only = FALSE, view = TRUE)

Arguments

types_only

If TRUE, only a vector of types is returned, otherwise, a tibble with full specifications is provided.

view

If TRUE, the result is "viewed" (displayed in a table in a separate window, if the user interface allows it, e.g., in RStudio) and returned invisibly. Otherwise, the results are returned normally.

Details

The function is mainly designed to be used interactively and to provide information about file types that can be read() or write(). This cannot be done through a man page because this list is dynamic and other packages could add or change entries there. With view = FALSE, the function can, nevertheless, be also used in a script or a R Markdown/Notebook document.

Value

An tibble with types_only = FALSE, or a character vector.

Author(s)

Philippe Grosjean phgrosjean@sciviews.org

See Also

read(), write()

Examples

## Not run: 
data_types()
data_types(TRUE)

## End(Not run)
# For non-interactive use, specify view = FALSE
data_types(view = FALSE)
data_types(TRUE, view = FALSE)

SciViews/data.io documentation built on May 5, 2024, 1:39 p.m.