Thomas J. Leeper

Results 135 comments of Thomas J. Leeper

No solution, but returning a character string and printing with `cat` works in Rgui but not the console. E.g., `cat(say("asdfsf", "longcat", length = 4, type="string"))`. So clearly Rgui is doing...

I don't have time at the moment to try to figure it out, so that's fine. Maybe putting it on CRAN will catch the attention of someone who can make...

Good points. Need to consider how to standardize this.

I've been thinking about this. The first step is really a cross-walk to show how attribute names vary across file formats. Something like: | Attribute | Stata | SPSS |...

That could work, but what formats will that work for other than plain text?

We could probably also take a look at the haven codebase and see if there's way to add some of this functionality upstream. I haven't looked but I imagine it's...

How about we make a generic like `get_col_names()` and start creating methods for it. For some of these (like text/tabular), this is going to be easy. We should also be...

Yea, that's what I meant. Sorry for not being clear - we wouldn't export the methods, just like we don't export import/export methods.

I take it this would be another option in the `setclass` import() option (like what we have for ("data.table" and "tibble")? Seems reasonable. I'm open to a PR here: https://github.com/leeper/rio/blob/master/R/set_class.R...