import_review: Decision management

View source: R/decision.R

import_reviewR Documentation

Decision management

Description

Opens a Shiny app that shows a visual diff of each modified file.

Usage

import_review(
  source_path = "R/",
  output_path = get_target_dir(),
  background = getOption("autoimport_background", FALSE)
)

Arguments

source_path

path to the original R files

output_path

path to the updated R files

background

whether to run the app in a background process. Default to getOption("autoimport_background", FALSE).

Value

nothing if background==FALSE, the (callr::process) object if background==TRUE

Warning

Beware that using background=TRUE can bloat your system with multiple R session!
You should probably kill the process when you are done:

p=import_review(background=TRUE)
p$kill()

Source

inspired by testthat::snapshot_review()


autoimport documentation built on April 4, 2025, 4:47 a.m.