Skip to content

Commit

Permalink
fix of bug in get_medicate_ds
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewphamilton committed Oct 14, 2024
1 parent e55cb5f commit 56495b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Description: Tools for undertaking time series analysis of mental health
the serious package has been made available as part of the process of
testing and documenting the package. If you have any questions,
please contact the authors (matthew.hamilton1@monash.edu).
License: GPL-3 + file LICENSE
License: GPL-3
URL: https://ready4-dev.github.io/serious/,
https://github.com/ready4-dev/serious,
https://ready4-dev.github.io/ready4/
Expand All @@ -23,6 +23,7 @@ RoxygenNote: 7.3.2
Suggests:
knitr,
knitrBootstrap,
pkgload,
rmarkdown,
testthat
VignetteBuilder: knitr
Expand Down Expand Up @@ -54,8 +55,10 @@ Imports:
tidyselect,
tsibble,
xts,
youthu (>= 0.0.0.9122),
youthvars (>= 0.0.0.9126)
Remotes:
Remotes:
ready4-dev/ready4show,
ready4-dev/ready4use,
ready4-dev/youthvars
ready4-dev/youthvars,
ready4-dev/youthu
2 changes: 1 addition & 1 deletion R/fn_get.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ get_medicare_data <- function (path_1L_chr = character(0), clean_1L_lgl = FALSE,
url_1L_chr = character(0))
{
if (!identical(path_1L_chr, character(0))) {
medicare_tb <- read.csv(path_1L_chr, fileEncoding = "latin1")
medicare_df <- read.csv(path_1L_chr, fileEncoding = "latin1")
}
else {
if (identical(url_1L_chr, character(0))) {
Expand Down
2 changes: 1 addition & 1 deletion data-raw/fns/get.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ get_medicare_data <- function(path_1L_chr = character(0),
file_1L_chr = "MH_MBS_QUARTERS_SEX_AGEGROUP_2223.csv",
url_1L_chr = character(0)){
if(!identical(path_1L_chr, character(0))){
medicare_tb <- read.csv(path_1L_chr, fileEncoding = "latin1")
medicare_df <- read.csv(path_1L_chr, fileEncoding = "latin1")
}else{
if(identical(url_1L_chr, character(0))){
url_1L_chr <- "https://www.aihw.gov.au/getmedia/285c5287-97ba-4acb-9003-e9edab1f61da/Medicare_mental_health_services_data_2223.zip"
Expand Down

0 comments on commit 56495b7

Please sign in to comment.