Skip to contents

get_db_stats returns basic summary information about the institutions, people, and data hosted on 'Databrary.org'.

Usage

get_db_stats(type = "stats", vb = FALSE, rq = NULL)

Arguments

type

Type of Databrary report to run "institutions", "people", "data"

vb

A Boolean value. If TRUE provides verbose output.

rq

An httr2 request object.

Value

A data frame with the requested data or NULL if there is no new information.

Examples

# \donttest{
get_db_stats()
#> # A tibble: 1 × 9
#>   date                investigators affiliates institutions datasets_total
#>   <dttm>                      <int>      <int>        <int>          <int>
#> 1 2024-04-26 19:22:11          1751        684          787           1684
#> # ℹ 4 more variables: datasets_shared <int>, n_files <int>, hours <dbl>,
#> #   TB <dbl>
get_db_stats("stats")
#> # A tibble: 1 × 9
#>   date                investigators affiliates institutions datasets_total
#>   <dttm>                      <int>      <int>        <int>          <int>
#> 1 2024-04-26 19:22:11          1751        684          787           1684
#> # ℹ 4 more variables: datasets_shared <int>, n_files <int>, hours <dbl>,
#> #   TB <dbl>
get_db_stats("people") # Information about the newest authorized investigators.
#> # A tibble: 5 × 6
#>      id sortname  prename   affiliation                              time  url  
#>   <int> <chr>     <chr>     <chr>                                    <chr> <chr>
#> 1 12529 Khan      Azizuddin Indian Institute of Technology Bombay    2024… NA   
#> 2 12590 Hochmann  Jean-Remy Centre National de la Recherche Scienti… 2024… http…
#> 3 12604 Martin    Andrew    University of Kent                       2024… NA   
#> 4 12488 Scerif    Gaia      University of Oxford                     2024… NA   
#> 5 12335 Governale Amy       North Park University                    2024… NA   
get_db_stats("places") # Information about the newest institutions.
#> # A tibble: 2 × 5
#>      id sortname                              url              institution time 
#>   <int> <chr>                                 <chr>            <lgl>       <chr>
#> 1 12624 Indian Institute of Technology Bombay https://www.iit… TRUE        2024…
#> 2 12607 North Park University                 https://www.nor… TRUE        2024…
# }