rrrlw/helixvis

Include the sequence.R file in the data directory

tomsing1 opened this issue · 1 comments

The authors include a small set of example peptides sequences, which is great. The source
code includes the data in two forms: the binary data/sequence.rda and the plain
data-raw/sequence.R file with the code that generates the former.

The sequence.R file can be included in the data directory directly and will be
sourced automatically when then data("sequence") call is executed. There is no need
for the binary file (or the data-raw directory). See the ?data help page for details.

When the sequence.R file is placed into the data directory, it is sourced and there is no need for the devtools::use_data(sequence) call.

devtools::use_data(sequence)

rrrlw commented

I didn't realize that .R files were automatically sourced. The redundant files/directories have been removed and sequence.R has been placed in the data directory (commit d7e6cdb). Thank you!