Skip to content

Commit

Permalink
pkg_function parameter added
Browse files Browse the repository at this point in the history
  • Loading branch information
saiemgilani committed Apr 6, 2023
1 parent 04d3773 commit c761b52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/upload.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ update_package_function <- function(tag, pkg_function) {
#' @param file_name file_name to upload as, without the file extension
#' @param sportsdataverse_type metadata: name/information to add to data
#' @param release_tag name of release to upload to
#' @param pkg_function related package function name
#' @param .token a GitHub token, defaults to gh::gh_token()
#' @param file_types one or more of c("rds","csv","parquet","qs","csv.gz")
#'
Expand All @@ -69,6 +70,7 @@ sportsdataverse_save <- function(data_frame,
file_name,
sportsdataverse_type,
release_tag,
pkg_function,
.token = gh::gh_token(),
file_types = c("rds", "csv", "parquet")
) {
Expand All @@ -78,11 +80,13 @@ sportsdataverse_save <- function(data_frame,
is.character(file_name),
is.character(sportsdataverse_type),
is.character(release_tag),
is.character(pkg_function),
is.character(.token),
is.character(file_types),
length(file_name) == 1,
length(sportsdataverse_type) == 1,
length(release_tag) == 1,
length(pkg_function) == 1,
length(.token) == 1,
length(file_types) >= 1
)
Expand Down
3 changes: 3 additions & 0 deletions man/sportsdataverse_save.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c761b52

Please sign in to comment.