Skip to contents

Get path to meta-data and codebooks

Usage

gbhs_path_meta(path = NULL, type = "codebook", ...)

Source

This function is adapted from readxl::readxl_example().

Arguments

path

filename of utility file to get path of. If NULL, lists possibilities

type

either "codebook" or "meta-data"

...

other arguments to list.files

Value

string of file path

Examples

gbhs_path_meta()
#>  [1] "114338_en.json"  "114338_en.tsv"   "116413_hu.json"  "116413_hu.tsv"  
#>  [5] "117805_no.json"  "117805_no.tsv"   "118017_fr.json"  "118017_fr.tsv"  
#>  [9] "119016_se.json"  "119016_se.tsv"   "119157_cat.json" "119157_cat.tsv" 
#> [13] "119161_sp.json"  "119161_sp.tsv"   "119162_ge.json"  "119162_ge.tsv"  
#> [17] "119773_dk.json"  "119773_dk.tsv"   "121893_ukr.json" "121893_ukr.tsv" 
#> [21] "123887_it.json"  "123887_it.tsv"   "125552_du.json"  "125552_du.tsv"  
#> [25] "131674_ch.json"  "131674_ch.tsv"   "132336_tu.json"  "132336_tu.tsv"  
#> [29] "134157_en.json"  "134157_en.tsv"   "135043_du.json"  "135043_du.tsv"  
gbhs_path_meta("131674_ch.json")
#> [1] "/home/runner/work/_temp/Library/gbhs/codebook/131674_ch.json"
gbhs_path_meta(type = "meta-data")
#>  [1] "114338_en.json"  "116413_hu.json"  "117805_no.json"  "118017_fr.json" 
#>  [5] "119016_se.json"  "119157_cat.json" "119161_sp.json"  "119162_ge.json" 
#>  [9] "119773_dk.json"  "121893_ukr.json" "123887_it.json"  "125552_du.json" 
#> [13] "131674_ch.json"  "132336_tu.json"  "134157_en.json"  "135043_du.json" 
gbhs_path_meta("131674_ch.json", type = "meta-data")
#> [1] "/home/runner/work/_temp/Library/gbhs/meta-data/131674_ch.json"