Rpolyhedra (version 0.2.6)

PolyhedraDatabase.class: PolyhedraDatabase

Description

Scrapes all polyhedra in data folder to save a representation which is accesible by the final users upon call to getPolyhedron().

Usage

PolyhedraDatabase.class

Arguments

Format

R6Class object.

Fields

polyhedra.rds.file

path of rds database file

sources.config

Sources configuration for scraping different sources

ledger

rr ledger of scraping process

data

Polyhedra data from different sources

Methods

initialize()

Initializes the object

existsSource(source)

Determines if the source exists on the database

getSource(source, strict=False)

Retrieves a source by name

addSource(source)

Adds a new source to the database

configPolyhedraRDSPath()

config path for rds database file

existsPolyhedron(source,polyhedron.name)

Determines if the polyhedron exists on the database

getPolyhedron(source, polyhedron.name, strict)

Retrieves a polyhedron by source and name

addPolyhedron(source,polyhedron,overwrite)

Adds a polyhedron by source and name, if orverwrite is TRUE, it will update any existing one by that source and name

configPolyhedraSource(source.config, max.quant)

Scrapes all polyhedra in the given directory for adding to db or testing

schedulePolyhedraSources(sources.config,max.quant, test)

Scrapes files applying parameter sources.config

getAvailablePolyhedra(sources,search.string)

Retrieves all polyhedron within the source those names match with search.string