getfile is a convenience function that serves as a wrapper for the functions
file.choose(), file.path(), and list.files().
If the user is working in a GUI environment, a window will pop up, allowing
the user to choose a specified file regardless of path.
Arguments
- multi
this is an indicator to allow the user to store the names of multiple files found in the directory. This is useful in conjunction with
poppr.all().- pattern
a
regex()pattern for use whilemulti == TRUE. This will grab all files matching this pattern.- combine
logical. When this is set toTRUE(default), the$filesvector will have the path appended to them. When it is set toFALSE, it will have the basename.
