rebuild_db.character: Attempts to rebuild a 'gcod_db' from the contents of a local...

Description Usage Arguments Details Value Examples

View source: R/db_management.R

Description

Attempts to rebuild a gcod_db from the contents of a local directory

Usage

1
2
## S3 method for class 'character'
rebuild_db(object, mirror = "S3", ...)

Arguments

object

a character string giving the path to the directory to use for extracting athlete IDs.

mirror

either "S3" or "OSF", indicating which GoldenCheetah OpenData mirror should be used. Default and recommended is "S3". See Details.

...

currently not used.

Details

mirror = OSF currently returns an error and will be supported in future versions.

Value

An object of class gcod_db.

Examples

1
2
3
4
5
ids007 <- get_athlete_ids(prefix = "007")
## Download the workouts in tempdir()
ids007 <- download_workouts(ids007)
## Test that the rebuild `gcod_db` object is identical to ids007
identical(ids007, rebuild_db(tempdir()))

ikosmidis/GoldenCheetahOpenData documentation built on June 3, 2020, 9:25 a.m.