Returns alerts on train service unavailability during scheduled operating hours.

getTrainAlerts(api_key)

Arguments

api_key

API key for LTA's Datamall

Value

If there is a train service disruption, it will return a dataframe containing the alerts and their respective details.

Examples

# NOT RUN {
getTrainAlerts(mykey)
# }