View source: R/molecular_spectrum.R
| exomol_datasets | R Documentation |
Lists the line lists of a molecule in the ExoMol database, for each
isotopologue, with the sizes of their files, to choose the dataset of
molecular_spectrum().
exomol_datasets(molecule, timeout = 60)
molecule |
The molecule, as named by ExoMol, such as |
timeout |
The download timeout, in seconds. Default is 60. |
The list is read from the ExoMol API, and needs the jsonlite package and an internet connection.
A tibble with one row per line list: the molecule, the
isotopologue (as in the file names), the dataset, whether ExoMol
recommended it, and the sizes of its transition and states files
(trans_mb, states_mb, in MB; NA when not listed).
molecular_spectrum()
# needs an internet connection; gives up after 20 s if ExoMol does not answer
if (rlang::is_installed("jsonlite")) {
try(exomol_datasets("CN", timeout = 20))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.