UTDEventData icon indicating copy to clipboard operation
UTDEventData copied to clipboard

The Table class isn't working

Open andrewheiss opened this issue 6 years ago • 2 comments
trafficstars

Following the vignette, creating an object from the Table class doesn't work:

# creating an object
obj <- Table$new()
# Error: object 'Table' not found

andrewheiss avatar Apr 08 '19 19:04 andrewheiss

Thank you, @andrewheiss, for finding the error of Table. I have fixed it, and it is working now as no error returns.

> obj<-Table$new()

Nevertheless, our team is thinking to drop out this reference class from the library because we think that storing an API key as an environment variable is more convenient.

Please let us know if you have a better idea on this issue.

KateHyoung avatar Apr 09 '19 07:04 KateHyoung

Hi! I think the best solution is really to use environment variables, as you've started doing, but wire them into the functions more directly instead of requiring api_key in every function. Packages like analogsea and qualtRics do this really well, storing API credentials as environment variable in ~/.Rprofile and not requiring them to be passed through functions, while also avoiding complex S4-style classes

andrewheiss avatar Apr 09 '19 16:04 andrewheiss