Recursively try to expand list of strings

.expandList(x)

Arguments

x

list, possibly of strings that are paths to expand

Value

list of strings with paths expaned

Examples

x = list(a=list(b=list(c="~/test.txt")))
.expandList(x)
#> $a
#> $a$b
#> $a$b$c
#> [1] "/home/runner/test.txt"
#> 
#> 
#>