Skip to content

get() fails in hts_prep_triprate #156

@ashleyasmus

Description

@ashleyasmus

This line fails with current versions of data.table:

triprate_dt = triprate_dt[, .(num_trips = sum(!is.na(get(trip_id)))),

This is related to data.table behavior:
Rdatatable/data.table#3052

AFAICT, it looks like a simple fix:
get(..trip_id) instead of get(trip_id)

This works in a local version of the repo.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions