Skip to content

Commit

Permalink
Update banc-table.R
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbates committed Oct 22, 2024
1 parent 9bf006d commit c7c0807
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions R/banc-table.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
#' @param workspace_id A numeric id specifying the workspace. Advanced use only
# since we can normally figure this out from \code{base_name}.
# @param cached Whether to use a cached base object
#' @param token normally retrieved from \code{BANCTABLE_TOKEN} environment
#' variable.
# @param token normally retrieved from \code{BANCTABLE_TOKEN} environment variable.
#' @param user,pwd banctable user and password used by \code{banctable_set_token}
#' to obtain a token
#' @param url Optional URL to the server
Expand Down Expand Up @@ -82,7 +81,8 @@ banctable_query <- function (sql = "SELECT * FROM banc_meta",
python=python,
convert=convert,
ac=ac,
token_name=token_name)
token_name=token_name,
workspace_id=workspace_id)
df <- rbind(df,bc)
offset <- offset+nrow(bc)
if(!length(bc)|nrow(bc)<seatable.max){
Expand Down Expand Up @@ -172,7 +172,8 @@ banctable_update_rows <- function (df,
append_allowed = FALSE,
chunksize = 1000L,
workspace_id = "57832",
token_name = "BANCTABLE_TOKEN", ...) {
token_name = "BANCTABLE_TOKEN",
...) {
df <- as.data.frame(df)
if (is.character(base) || is.null(base))
base = banctable_base(base_name = base, table = table, workspace_id = workspace_id, token_name = token_name)
Expand Down Expand Up @@ -367,7 +368,10 @@ banctable2df <- function (df, tidf = NULL) {
}

# hidden, helper function to update status column
banc_update_status <- function(df, update, col = "status", wipe = FALSE){
banc_update_status <- function(df,
update,
col = "status",
wipe = FALSE){
if(wipe){
df$status <- ""
}else{
Expand Down

0 comments on commit c7c0807

Please sign in to comment.