upload_dir: Upload all files in a directory.

Description Usage Arguments Examples

Description

Upload all files in a directory.

Usage

1
2
upload_dir(set_name = sha1(), project = project_name(),
  path = get_diff_dir(), key = api_key())

Arguments

set_name

Name of the image set. Defaults to the sha1 of the current git commit. Manually override if you're not using git.

project

Name of the project. Defaults to the name of the current directory

path

Path where images are located. All files ending in .png are uploaded. Defaults to get_diff_dir().

key

difftron api get. See api_key for more details.

Examples

1
2
3
4
set_diff_dir(tempfile(), create = TRUE)
capture_plot("Sequence", plot(1:10))
capture_plot("Random", plot(runif(10)))
upload_dir()

hadley/rifftron documentation built on May 17, 2019, 11:31 a.m.