osf_report_modified: Search an osf component for all modified subcomponents and...

Description Usage Arguments Value Examples

Description

Search an osf component for all modified subcomponents and files.

Usage

1
2
osf_report_modified(id, after_date, type = "user", template = NULL,
  ...)

Arguments

id

Single osf_tbl row to search for subcomponents and files.

after_date

Only keep components and files modified after this date.

type

What type of id is used, "user" or "component".

template

String template for formatting results.

...

Additional arguments passed to walk_parent (only used if type is "component").

Value

A list of osf_tbl objects that can be combined using dplyr::bind_rows

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
me <- osf_retrieve_user("aswnc")

# return tibble of modified components and files
report <- osf_report_modified("aswnc", after_date = "2019-01-01")
report


# return printed reports only
osf_report_modified("aswnc", after_date = "2019-01-01", template = osf_template$simple)

# "6sqvw" is the id for the paper "Inducing cognitive control..."
osf_report_modified("6sqvw", type = "node", after_date = "2019-01-01")

# don't report files
osf_report_modified("6sqvw", type = "node", after_date = "2019-01-01")

machow/labmanageR documentation built on May 16, 2019, 5:01 a.m.