Skip to content

Commit

Permalink
more data.table worarounds and coverage
Browse files Browse the repository at this point in the history
Know bug with dplyr and data.table
  • Loading branch information
mem48 committed Feb 11, 2025
1 parent 2bfa7bb commit 3ea2476
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 6 additions & 2 deletions R/stops_per_week_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,12 @@ gtfs_trim_dates <- function(gtfs,

# New gtfs_read loads in data.table IDate format
if(inherits(calendar$start_date,"IDate")){
startdate <- data.table::as.IDate(startdate)
enddate <- data.table::as.IDate(enddate)
calendar$start_date <- as.Date(calendar$start_date)
calendar$end_date <- as.Date(calendar$start_date)
}

if(inherits(calendar_dates$date,"IDate")){
calendar_dates$date <- as.Date(calendar_dates$date)
}


Expand Down

0 comments on commit 3ea2476

Please sign in to comment.