Learn R Programming

r3dmol (version 0.1.2)

m_remove_all_models: Delete all existing models

Description

Delete all existing models

Usage

m_remove_all_models(id)

Arguments

id

R3dmol id or a r3dmol object (the output from r3dmol())

Value

id R3dmol id or a r3dmol object (the output from r3dmol())

Examples

Run this code
# NOT RUN {
library(r3dmol)

mol <- r3dmol() %>%
  m_add_model(data = "data-raw/Conformer3D_CID_5291.sdf", format = "sdf")

# Render model
mol

# Remove all labels
mol %>%
  m_remove_all_models()
# }

Run the code above in your browser using DataLab