Nothing
#' Addin Function to originize currently opened file
#'
#' Simple wrapper to originize_file with default of currently opened script.
#' Mainly for usage as an RStudio Addin.
#'
#' @template file
#' @template pkgs
#' @template overwrite
#' @template ask_before_applying_changes
#' @template check_conflicts
#' @template check_base_conflicts
#' @template add_base_packages
#' @template excluded_functions
#' @template verbose
#' @template use_markers
#'
#' @return NULL, called for side effects
#' @noRd
originize_current_file <-
function(file = rstudioapi::getSourceEditorContext()$path,
pkgs = getOption("origin.pkgs", .packages()),
overwrite = getOption("origin.overwrite"),
ask_before_applying_changes =
getOption("origin.ask_before_applying_changes"),
check_conflicts = getOption("origin.check_conflicts"),
check_base_conflicts = getOption("origin.check_base_conflicts"),
add_base_packages = getOption("origin.add_base_packages"),
excluded_functions = getOption("origin.excluded_functions"),
verbose = getOption("origin.verbose"),
use_markers = getOption("origin.use_markers_for_logging")) {
originize_file(file,
pkgs = pkgs,
overwrite = overwrite,
ask_before_applying_changes = ask_before_applying_changes,
check_conflicts = check_conflicts,
check_base_conflicts = check_base_conflicts,
add_base_packages = add_base_packages,
excluded_functions = excluded_functions,
verbose = verbose,
use_markers = use_markers)
return(invisible(NULL))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.