Skip to contents

Any ID in osf_id that belongs to an OSF user rather than a project is replaced by that user's projects; every other ID is passed through unchanged. This is what lets osf_file_download() accept a profile ID and download everything that user has shared.

Usage

.osf_expand_user_ids(osf_id, pb = NULL)

Arguments

osf_id

a vector of OSF IDs (already validated by osf_check_id())

pb

a progress bar passed from another function

Value

a character vector of IDs with any user IDs replaced by their projects