constructive
constructive copied to clipboard
Display Idiomatic Code to Construct Most R Objects
When we construct an object we use mostly the default constructors and it takes a bit of research to know how we can tweak the output. maybe we can have...
I like using constructive to create code to use in tests and I'll need to copy the output of the print method and paste it into another file. I'd suggest...
``` constructive::construct(quote(`*`(1 + 2, 3))) #> {constructive} couldn't create code that reproduces perfectly the input #> ℹ Call `construct_issues()` to inspect the last issues #> quote(1 + 2 * 3)...
These are args of `c()` so we need to use `structure(, names=)` for those. Surprisingly dput() gets it right
R can create negative zeros, NAs, NaNs, that are mostly not recognised by R functions. https://twitter.com/antoine_fabri/status/1778467270819213778 Should we take care of those ? This part is not too hard, the...
We could use those for every object in fact but it's of little value, except maybe for corner cases where no other constructor works well. For environments it makes perfect...
We have mostly shied away for encoding hell so far. We usefully print the code points for special characters which helps for homoglyphs but otherwise we really expect everything to...
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. ## Repository problems Renovate tried to run on this repository, but found these problems....
adresses #74 The idea of construct_workspace() is is to produce readable code that rebuilds the session's objects, and probably attach the right packages (because we can and why not). There...