GGIR uses some code which does not play nice with some file paths on Windows (e.g., those produced by tempdir()). This function converts between a file path to the format that works with GGIR.

translate_filepath(path)

Arguments

path

The file or folder path to convert.

Value

The same file path with \\ replaced with /

See also

Other helper functions: build_meta(), collate_outputs(), find_problem_files()

Examples

example_path <- tempdir()
translate_filepath(example_path)
#> [1] "/tmp/Rtmp1Fike6"