read_list: Read R list, printed to a text file

Description Usage Arguments Value Examples

View source: R/read_list.R

Description

Function reads a simple list, which contain vectors and functions.

Usage

1

Arguments

x

(character) Either a path to a file, a connection, or literal data (either a single string or a raw vector).
Literal data is most useful for examples and tests. It must contain at least one new line to be recognised as data (instead of a path).

Value

An R list.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
library(conspect.helper)


FILE <- "data-raw/my_control_04.txt"
read_list(FILE)


read_list(
'$method
[1] "cv"

$number
[1] 10

$repeats
[1] 1
')

GegznaV/conspect.helper documentation built on Nov. 28, 2018, 9:06 a.m.