Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rtext_base

rtext_base : basic workhorse for rtext


Description

rtext_base : basic workhorse for rtext

rtext_base : basic workhorse for rtext

Format

R6Class object.

Value

Object of R6Class

Super class

Methods

Public methods


Method new()

Usage
rtext_base$new(
  text = NULL,
  text_file = NULL,
  encoding = "UTF-8",
  id = NULL,
  save_file = NULL,
  verbose = TRUE
)

Method info()

Usage
rtext_base$info()

Method text_show()

Usage
rtext_base$text_show(
  length = 500,
  from = NULL,
  to = NULL,
  coll = FALSE,
  wrap = FALSE
)

Method text_get()

Usage
rtext_base$text_get(length = Inf, from = NULL, to = NULL, split = NULL)

Method text_get_lines()

Usage
rtext_base$text_get_lines(length = Inf, from = NULL, to = NULL)

Method char_get()

Usage
rtext_base$char_get(length = Inf, from = NULL, to = NULL, raw = FALSE)

Method char_add()

Usage
rtext_base$char_add(what = NULL, after = NULL)

Method char_delete()

Usage
rtext_base$char_delete(n = NULL, from = NULL, to = NULL)

Method char_replace()

Usage
rtext_base$char_replace(from = NULL, to = NULL, by = NULL)

Method char_length()

Usage
rtext_base$char_length()

Method char_data_set()

Usage
rtext_base$char_data_set(x = NULL, i = NULL, val = NA, hl = 0)

Method char_data_set_regex()

Usage
rtext_base$char_data_set_regex(x = NULL, pattern = NULL, val = NA, hl = 0, ...)

Method char_data_get()

Usage
rtext_base$char_data_get(from = 1, to = Inf, x = NULL, full = FALSE)

Method hash_get()

Usage
rtext_base$hash_get(name = "")

Method clone()

The objects of this class are cloneable with this method.

Usage
rtext_base$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also


rtext

R6 Objects for Text and Data

v0.1.22
MIT + file LICENSE
Authors
Peter Meissner [aut, cre], Ulrich Sieberer [cph], University of Konstanz [cph]
Initial release
2021-01-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.