Skip to contents

Locate the input directory

Usage

input(...)

Arguments

...

the sub paths within the input directory

Value

a path to the input directory and sub paths if provided

Examples


# devtools::load_all()
try({
  avoncap::set_input("~/Data/avoncap")
  avoncap::input("nhs-extract")

  avoncap::all_files()


  # exact match on filename column of all_data()
  avoncap::most_recent_files("AvonCAPLRTDCentralDa")


  # or matches by lower case startWith on directory
  avoncap::most_recent_files("nhs-extract","deltave")


  avoncap::most_recent_files("metadata")

  avoncap::valid_inputs()
})
#> Found data directory: /home/vp22681/Data/avoncap
#> # A tibble: 32 × 3
#> # Groups:   type [8]
#>    type                 subtype      file                        
#>    <chr>                <chr>        <chr>                       
#>  1 admission-dates      NA           central                     
#>  2 avoncap-data-quality NA           confirmed-missing-2023-08-07
#>  3 avoncap-export       central      central_y1                  
#>  4 avoncap-export       central      central_y2                  
#>  5 avoncap-export       uad-controls uad-controls                
#>  6 avoncap-export       central      central_y3                  
#>  7 avoncap-export       gp           gp                          
#>  8 avoncap-export       ed           ed_y3                       
#>  9 avoncap-export       central      central_y4                  
#> 10 ethnicity            NA           y1                          
#> # ℹ 22 more rows