oeis.tools is an R interface to the Online Encyclopedia
of Integer Sequences (OEIS): it fetches sequence metadata and b-files,
parses them into S3 objects, and plots terms with
ggplot2.
Sequence(oeis_id) fetches and parses an OEIS entry from
the JSON API.
B-files contain more terms of a sequence than the main OEIS entry, often thousands.
plot_data() builds a ggplot2 line or
scatter plot from a BFile.
get_xref_ids() extracts the OEIS ids referenced in a
sequence’s xref field:
oeis_keyword_description() looks up the description text
for an OEIS keyword tag:
Sequence and b-file terms are stored as gmp::bigz
values, so terms with hundreds of digits are never truncated.
plot_data() and plot.Sequence() detect when a
value overflows double precision and automatically switch to a signed
log10 magnitude scale.
get_bfile_info() summarizes the b-file attached to a
Sequence (length, first/last/min/max terms), and
create_bfile() writes a vector of values out to disk in the
standard b-file format:
get_bibtex() builds a BibTeX @misc entry
for an OEIS sequence: