Skip to contents

This is a thin wrapper around the upload_file function from Microsoft365R, it just has defaults and safeguards tailored to uploading Western Blots. You could theoretically upload anything this way. It WILL overwrite without prompting.

Usage

wb_put(
  path,
  dest_path,
  wb_edit_path = Sys.getenv("WEBBER_WBEDITPATH"),
  user = Sys.getenv("WEBBER_USR"),
  drive = NULL
)

Arguments

path

Character. Path to the local file.

dest_path

Character. Path to upload the file. See details.

wb_edit_path

Character. Path where Western blot edits are kept.

user

Character. User directory name.

drive

An optional ms_drive object. If none supplied, will make one automatically.

Value

Character. Path to the file on Sharepoint.

Details

The uploaded file location is produced via fs::path(wb_edit_path, user, dest_path)

Examples