box_dir_invite() is deprecated in favor of box_collab_create().
box_dir_invite(
dir_id,
user_id,
login = NULL,
role = "viewer",
can_view_path = FALSE
)Invisible list().
numeric or character, folder ID at Box.
character ID for Box user-account to invite.
character email address of account to invite, if specified
will be used instead of user_id.
character role of the collaborator; default is "viewer".
logical indicates to allow the collaborator to
navigate parent-folders at Box.