Learn R Programming

RSuite (version 0.37-253)

rc_adapter_remove_admins: Remove all RC related administrative entries from folder tree at dir.

Description

This is required for cleaning temporary folder during collecting entries to put into project zip package.

Usage

rc_adapter_remove_admins(rc_adapter, dir)

Arguments

rc_adapter

rc adapter object

dir

path to the directory to remove administrators from. The folder must exist (type: character)

See Also

Other in extending RSuite with RC adapter: rc_adapter_create_base, rc_adapter_get_version, rc_adapter_is_under_control, rc_adapter_pkg_struct_add, rc_adapter_prj_struct_add

Examples

Run this code
# NOT RUN {
# create you own RC adapter
rc_adapter_create_own <- function() {
  result <- rc_adapter_create_base("Own")
  class(result) <- c("rc_adapter_own", class(result))
  return(result)
}

#' @export
rc_adapter_remove_admins.rc_adapter_own <- function(rc_adapter, dir) {
  # ... unlink RC administrative folders from dir (like .svn or .git) ...
}

# }

Run the code above in your browser using DataLab