Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

switch out function name #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/sb_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' @param file_hash a yaml file with filepath and hash value pairs. All files named in the
#' `file_hash` will be uploaded to sciencebase
#' @param sources filepath(s) for where all of the functions that are needed for running
#' `sb_replace_files_log` exist. For example, where `sb_replace_files`, `sb_render_post_xml`,
#' `sb_replace_files` exist. For example, where `sb_replace_files`, `sb_render_post_xml`,
#' `do_item_replace_tasks`, `upload_and_record`, and `combine_upload_times` are defined. It
#' is recommended to put them all in the same file.
#'
Expand All @@ -18,7 +18,7 @@
#' treated as a dependency. If you feel the need to put `sources = I(c('file1.R','file2.R'))` note that
#' remake won't track the contents of the files to trigger re-builds, just the file names (because of the I()).
#' I would suggest keeping every function and variable you need in one source file for this pattern
sb_replace_files_log <- function(filename, sb_id, ..., file_hash, sources = c()){
sb_replace_files <- function(filename, sb_id, ..., file_hash, sources = c()){

files <- c(...)

Expand All @@ -34,7 +34,7 @@ sb_replace_files_log <- function(filename, sb_id, ..., file_hash, sources = c())
}


sb_replace_files <- function(sb_id, ..., file_hash){
sb_replace_files_old <- function(sb_id, ..., file_hash){

if (!sbtools::is_logged_in()){

Expand Down