Skip to content

Commit

Permalink
Merge pull request #48 from MangoTheCat/46-could-not-find-function-ge…
Browse files Browse the repository at this point in the history
…t_report

46 could not find function get report
  • Loading branch information
tbowling87 committed Oct 19, 2023
2 parents a0c7203 + 63a5a1d commit a563caa
Show file tree
Hide file tree
Showing 11 changed files with 243 additions and 168 deletions.
10 changes: 4 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: bambooHR
Type: Package
Title: A Wrapper to the 'BambooHR' API
Version: 0.1.0
Version: 0.1.1.9000
Authors@R:
c(
person("Tom", "Bowling", , "tom.bowling@ascent.io", role = c("aut", "cre")),
Expand All @@ -27,17 +27,15 @@ Imports:
tibble,
tidyr,
lubridate,
testthat,
janitor,
stringr,
cli,
withr,
fs
withr
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.2
RoxygenNote: 7.2.3
URL: https://mangothecat.github.io/bambooHR/
BugReports: https://github.com/MangoTheCat/bambooHR/issues
Suggests: httptest
Suggests: httptest, testthat
Config/testthat/edition: 3
4 changes: 4 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
export("%>%")
export(build_url)
export(config_setup)
export(get_company_file)
export(get_employee)
export(get_employee_file)
export(get_meta)
export(get_report)
export(get_request)
export(get_table)
export(get_timeoff_policies)
export(get_timeoff_requests)
Expand Down
2 changes: 2 additions & 0 deletions R/get_company_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#' )
#'}
#'
#' @export
#'
#' @importFrom rlang .data
#'@author Harry Alexander, \email{harry.alexander@ascent.io}

Expand Down
2 changes: 2 additions & 0 deletions R/get_employee_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#' )
#'}
#'
#' @export
#'
#' @importFrom rlang .data
#' @author Harry Alexander, \email{harry.alexander@ascent.io}

Expand Down
1 change: 1 addition & 0 deletions R/get_report.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#'
#' @return Currently the function simply returns a parsed response object.
#'
#' @export
get_report <- function(
id,
format = c("CSV", "PDF", "XLS", "XML", "JSON"),
Expand Down
2 changes: 2 additions & 0 deletions R/get_request.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#'
#' @return A [httr::response()] object.
#'
#' @export
#'
#' @examples
#' \dontrun{
#' res <- get_request("https://api.bamboohr.com/api/gateway.php/your_company/v1/employees/0/")
Expand Down
6 changes: 3 additions & 3 deletions man/ISO_8601.Rd

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

2 changes: 1 addition & 1 deletion man/bambooHR-package.Rd

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

8 changes: 4 additions & 4 deletions man/date_formats.Rd

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

3 changes: 1 addition & 2 deletions man/get_meta.Rd

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

0 comments on commit a563caa

Please sign in to comment.