constructive
constructive copied to clipboard
Display Idiomatic Code to Construct Most R Objects
should be used to record info when some events are encountered : * state dependent issues: https://github.com/cynkra/constructive/issues/166, https://github.com/cynkra/constructive/issues/155 * corrupted elements * definition of pointers or environments using `env()` or...
These work but the output is very verbose, I'm not sure if we can have a general constructor for htmlwidgets but it's worth investigating. constructors for common widgets would be...
``` r igraph NULL, #> NULL, #> NULL, #> NULL, #> list( #> c(1, 0, 1), list(name = "Ring graph", mutual = FALSE, circular = TRUE), #> list(), list(foo =...
To be able to keep comments, skipped lines, indention and other spaces in constructed output. As we do with functions. See https://github.com/cynkra/constructive/pull/215#issuecomment-1634192856 The srcref of language objects seems to work...
Since : * we're probably not going to convince every class owner to build their own constructors * extending for every class in this repo is a bit messy, ggplot2...
I struggled to provided a way for users to contribute code called by our functions. This is usually done with S3 for classes but here we have different constructors, not...
this is a global object we mostly don't care about when creating a reprex, let's hide it by default
here the `Petal.Width` expression doesn't make sense: ``` constructive::construct(iris, opts_atomic(trim = 5, fill = "...")) #> ! The code built by {constructive} could not be evaluated. #> ! Due to...
By default we guess the theme, but this means if it is guessed (e.g. theme_bw())we cannot see how the theme() call would look like. and the list() call is less...
The ``quote(`\U{123}`)`` syntax is illegal. This means `quote()` cannot be used as a constructor when a language object contains some characters, depending on `unicode_representation`. We could use `substitute()` or `quote()`,...