get_UUID_from_file_path | R Documentation |
Problems and reserve selections saved from bdpg in rds files are given a file name with a specific syntax, i.e., "saved", object type, UUID, "rds". For example, saved.RSprob-COR-Base.489a016d-14fd-40af-89bb-3e1edf38f14f.rds This function decodes that file name and returns the UUID.
get_UUID_from_file_path(f)
f |
rds file name (possibly full path) containing a UUID |
Returns UUID section of the given file name
get_UUID_from_file_path ("saved.RSprob-COR-Base.489a016d-14fd-40af-89bb-3e1edf38f14f.rds") long_path_part1 = "/Users/bill/tzar/outputdata/bdpgxupaper_single_action_COR_prob/" long_path_part2 = "default_runset/1_marxan_simulated_annealing/RSprob-COR-Base." long_path_part3 = "489a016d-14fd-40af-89bb-3e1edf38f14f" long_path_part4 = "/saved.RSprob-COR-Base.489a016d-14fd-40af-89bb-3e1edf38f14f.rds" long_path = paste0 (long_path_part1, long_path_part2, long_path_part3, long_path_part4) get_UUID_from_file_path (long_path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.