tf_upload: Upload a file to 'transfer.sh'

Description Usage Arguments Value Examples

View source: R/upload.R

Description

Share files with a URL Upload up to 10 GB Files stored for 14 days

Usage

1
2
3
4
5
6
7
8
tf_upload(
  filename,
  path = NULL,
  max_downloads = NULL,
  max_days = NULL,
  spinner = TRUE,
  ...
)

Arguments

filename

File to be uploaded

path

Path to find the file (combined with filenamed)

max_downloads

Number of max downloads downloaded from the provided link.

max_days

Number of days that the link is going be live. Maximum to 14.

spinner

Whether to show a reassuring spinner while the process is running.

...

Further arguments paseed to run.

Value

a transfer.sh link.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 

# Upload current directory
x <- tf_upload(".")

# See the content send to \code{transfer.sh}
tf_content(x)

# Open the link in browser
tf_browse(x)

# Download
tf_download(x)

## End(Not run)

kvasilopoulos/transfer documentation built on Aug. 6, 2020, 3:35 a.m.