print.molecule_single: Coerce molecule(s) to character

Description Usage Arguments Value Examples

View source: R/molecule.R

Description

Coerce molecule(s) to character

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## S3 method for class 'molecule_single'
print(x, ...)

## S3 method for class 'mol'
print(x, ...)

## S3 method for class 'molecule_single'
as.character(x, wrap_super = identity,
  wrap_sub = identity, wrap_sub_molecule = function(x) paste0("(", x,
  ")"), element_sep = "", ...)

## S3 method for class 'mol'
as.character(x, ...)

Arguments

x

A molecule(s) object

...

Ignored

wrap_super, wrap_sub, element_sep, wrap_sub_molecule

wrapper functions for fancy formatting (see chem_markdown)

Value

A character vector

Examples

1
2
3
4

paleolimbot/chemr documentation built on Sept. 11, 2021, 2:02 p.m.