plot_PR_webpage: Generate a webpage containing a visualization detailing PR's...

View source: R/travisPR_metrics.R

plot_PR_webpageR Documentation

Generate a webpage containing a visualization detailing PR's impact on performance without haveing to merge.

Description

The function must be called from a directory containing only a single git repository checked out to the branch which is meant to be tested against the master branch of the repository's remote repo. This function is designed keeping in mind the PR testing methodlogy of Travis-CI. Given a test-file path and the required metric, it creates a webpage visualizing the metric details of the file against the first commit till the latest common commit for the git repo, and against the latest commit for master branch of the repo's remote.

Usage

plot_PR_webpage(test_path, metric = "time")

Arguments

test_path

File-path, relative to the git repo, for the test file to be tested.

metric

The metric (runtime or memory) for which the file is to be tested.

Value

None

Warning

Function assumes the current directory to be the parent directory of the the repository being tested.

Examples


## Not run: 
# Set the current directory to the parent directory of the concerned repository.
setwd("./Path/to/parent/directory")

# Set the file-path
t_path <- "Path/to/file"

# Load the library and pass the parameters to the function
library(Rperform)
plot_PR_webpage(t_path, metric = "time")

## End(Not run)


analyticalmonk/Rperform documentation built on July 3, 2022, 2:36 a.m.