jjanuszczak / freshdeskr

R client for Freshdesk
MIT License
2 stars 0 forks source link

If include stats is not selected, tickets method will raise an error #26

Closed jjanuszczak closed 6 years ago

jjanuszczak commented 6 years ago

When using the tickets method, if include_stats is set to FALSE an error is raised:

Error in `[.data.frame`(ticket_data, , date_fields) : 
  undefined columns selected 
5.
stop("undefined columns selected") 
4.
`[.data.frame`(ticket_data, , date_fields) 
3.
ticket_data[, date_fields] 
2.
lapply(ticket_data[, date_fields], as.POSIXlt, format = "%Y-%m-%dT%H:%M:%SZ") at tickets.R#164
1.
tickets(fc)