exist_in.gcod_db: Checks whether the workout archives referenced in the remote...

Description Usage Arguments Value Examples

View source: R/db_management.R

Description

Checks whether the workout archives referenced in the remote perspective of a gcod_db exist in ‘local_dir’

Usage

1
2
3
4
exist_in(object, ...)

## S3 method for class 'gcod_db'
exist_in(object, local_dir, ...)

Arguments

object

an object of class gcod_db.

...

currently not used.

local_dir

the directory to check for the workout archives for athlete_id(object, perspective = "remote").

Value

A vector of the same length as n_ids(object, perspective = "remote").

Examples

1
2
3
4
5
6
7
ids007 <- get_athlete_ids(prefix = "007")
## Download the workouts for the first athlete in tempdir()
id <- subset(ids007, athlete_id(ids007) == athlete_id(ids007)[2])
id <- download_workouts(id)
## Only the workout archive for athlete_id(ids007)[2] from the ones
# in the remote perspective of ids007 exist in tempdir()
exist_in(ids007, tempdir())

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