Meredith-Lab / volcalc

volcalc: Calculate Volatility of Chemical Compounds
https://meredith-lab.github.io/volcalc/
Other
5 stars 1 forks source link

Add additional example .mol files to inst/extdata #86

Closed Aariq closed 1 year ago

Aariq commented 1 year ago
Aariq commented 1 year ago

Before I merge this, would it be better if mol_example() just returned a (named) vector of file paths? E.g.

mol_example()
#> [1] "/Users/ericscott/Documents/GitHub/volcalc/inst/extdata/C00031.mol"
#> [2] "/Users/ericscott/Documents/GitHub/volcalc/inst/extdata/C08491.mol"
#> [3] "/Users/ericscott/Documents/GitHub/volcalc/inst/extdata/C16181.mol"
#> [4] "/Users/ericscott/Documents/GitHub/volcalc/inst/extdata/C16286.mol"
#> [5] "/Users/ericscott/Documents/GitHub/volcalc/inst/extdata/C16521.mol"

Then you could do things like calc_vol(mol_example()) @KristinaRiemer

Aariq commented 1 year ago

possibly add readLines() to example for mol_example()