Package: constructive 1.3.0

Antoine Fabri

constructive: Display Idiomatic Code to Construct Most R Objects

Prints code that can be used to recreate R objects. In a sense it is similar to 'base::dput()' or 'base::deparse()' but 'constructive' strives to use idiomatic constructors.

Authors:Antoine Fabri [aut, cre], Kirill Müller [ctb], Jacob Scott [ctb], cynkra GmbH [fnd]

constructive_1.3.0.tar.gz
constructive_1.3.0.zip(r-4.7)constructive_1.3.0.zip(r-4.6)constructive_1.3.0.zip(r-4.5)
constructive_1.3.0.tgz(r-4.6-x86_64)constructive_1.3.0.tgz(r-4.6-arm64)constructive_1.3.0.tgz(r-4.5-x86_64)constructive_1.3.0.tgz(r-4.5-arm64)
constructive_1.3.0.tar.gz(r-4.7-arm64)constructive_1.3.0.tar.gz(r-4.7-x86_64)constructive_1.3.0.tar.gz(r-4.6-arm64)constructive_1.3.0.tar.gz(r-4.6-x86_64)
constructive_1.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
constructive/json (API)
NEWS

# Install 'constructive' in R:
install.packages('constructive', repos = c('https://cynkra.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/cynkra/constructive/issues

Pkgdown/docs site:https://cynkra.github.io

On CRAN:

Conda:

10.54 score 176 stars 3 packages 28 scripts 5.3k downloads 163 exports 6 dependencies

Last updated from:3828bdbb27. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK181
linux-devel-x86_64OK183
source / vignettesOK211
linux-release-arm64OK231
linux-release-x86_64OK201
macos-release-arm64OK147
macos-release-x86_64OK525
macos-oldrel-arm64OK108
macos-oldrel-x86_64OK260
windows-develOK172
windows-releaseOK402
windows-oldrelOK166
wasm-releaseOK124

Exports:.cstr_apply.cstr_combine_errors.cstr_construct.cstr_new_class.cstr_new_constructor.cstr_options.cstr_pipe.cstr_repair_attributes.cstr_wrap.env.xptrcompare_optionsconstructconstruct_baseconstruct_clipconstruct_diffconstruct_dputconstruct_dumpconstruct_issuesconstruct_multiconstruct_reprexconstruct_signaturedeparse_callopts_arrayopts_AsIsopts_atomicopts_bibentryopts_blobopts_characteropts_citationFooteropts_citationHeaderopts_classGeneratorFunctionopts_classPrototypeDefopts_classRepresentationopts_complexopts_constructive_optionsopts_CoordCartesianopts_CoordFixedopts_CoordFlipopts_CoordMapopts_CoordMunchopts_CoordPolaropts_CoordQuickmapopts_CoordRadialopts_CoordSfopts_CoordTransopts_CoordTransformopts_data.frameopts_data.tableopts_Dateopts_difftimeopts_dmopts_dotsopts_doubleopts_element_blankopts_element_grobopts_element_lineopts_element_rectopts_element_renderopts_element_textopts_ellmer_TypeArrayopts_ellmer_TypeBasicopts_ellmer_TypeEnumopts_ellmer_TypeJsonSchemaopts_ellmer_TypeObjectopts_environmentopts_erroropts_expressionopts_externalptropts_FacetGridopts_FacetNullopts_FacetWrapopts_factoropts_formulaopts_functionopts_ggplotopts_ggplot2_element_blankopts_ggplot2_element_geomopts_ggplot2_element_lineopts_ggplot2_element_pointopts_ggplot2_element_polygonopts_ggplot2_element_rectopts_ggplot2_element_textopts_ggplot2_ggplotopts_ggplot2_labelsopts_ggplot2_mappingopts_ggplot2_marginopts_ggplot2_themeopts_ggprotoopts_grouped_dfopts_Guideopts_GuideAxisopts_GuideAxisLogticksopts_GuideAxisStackopts_GuideAxisThetaopts_GuideBinsopts_GuideColourbaropts_GuideColourstepsopts_GuideCustomopts_GuideLegendopts_GuideNoneopts_Guidesopts_hexmodeopts_integeropts_integer64opts_labelsopts_languageopts_Layeropts_listopts_logicalopts_marginopts_matrixopts_mtsopts_noquoteopts_NULLopts_numeric_versionopts_objectopts_octmodeopts_orderedopts_package_versionopts_pairlistopts_personopts_POSIXctopts_POSIXltopts_quosureopts_quosuresopts_R_system_versionopts_R6opts_R6ClassGeneratoropts_rawopts_relopts_rowwise_dfopts_S4opts_S7_anyopts_S7_base_classopts_S7_classopts_S7_external_genericopts_S7_genericopts_S7_objectopts_S7_propertyopts_S7_S3_classopts_S7_unionopts_Scaleopts_ScalesListopts_simpleConditionopts_simpleErroropts_simpleMessageopts_simpleUnitopts_simpleWarningopts_tbl_dfopts_themeopts_tsopts_unevalopts_vctrs_list_ofopts_waiveropts_warningopts_weakrefopts_xml_documentopts_xtsopts_yearmonopts_yearqtropts_zooopts_zooreg

Dependencies:clicrayondiffobjgluerlangwaldo

deparse_call

Rendered fromdeparse_call.Rmdusingknitr::rmarkdownon May 23 2026.

Last update: 2025-08-07
Started: 2025-08-07

Extend constructive

Rendered fromextend-constructive.Rmdusingknitr::rmarkdownon May 23 2026.

Last update: 2024-07-03
Started: 2024-07-02

Readme and manuals

Help Manual

Help pageTopics
.cstr_apply.cstr_apply
Combine errors.cstr_combine_errors
Generic for object code generation.cstr_construct
Create constructive options.cstr_options
Insert a pipe between two calls.cstr_pipe
Repair attributes after idiomatic construction.cstr_repair_attributes
Wrap argument code in function call.cstr_wrap
Fetch environment from memory address.env
Build a pointer from a memory address.xptr
Options for waldo::comparecompare_options
Build code to recreate an objectconstruct construct_multi
Construct to clipboardconstruct_clip
Display diff of object definitionsconstruct_diff
Construct using only low level constructorsconstruct_base construct_dput
Dump Constructed Code to a Fileconstruct_dump
Show constructive issuesconstruct_issues
construct_reprexconstruct_reprex
Construct a function's signatureconstruct_signature
Global Optionsconstructive-global_options constructive_opts_template constructive_pretty constructive_print_mode
Deparse a language objectdeparse_call
Extend constructiveextend-constructive
Constructive options for arraysopts_array
Constructive options for the class 'AsIs'opts_AsIs
Constructive options for atomic typesopts_atomic
Constructive options for class 'blob'opts_blob
Constructive options for type 'character'opts_character
Constructive options for class 'classGeneratorFunction'opts_classGeneratorFunction
Constructive options for class 'classPrototypeDef'opts_classPrototypeDef
Constructive options for class 'classRepresentation'opts_classRepresentation
Constructive options for type 'complex'opts_complex
Constructive options for the class 'constructive_options'opts_constructive_options
Constructive options for class 'CoordRadial'opts_CoordRadial
Constructive options for class 'CoordTransform'opts_CoordTransform
Constructive options for class 'data.frame'opts_data.frame
Constructive options for class 'data.table'opts_data.table
Constructive options class 'Date'opts_Date
Constructive options class 'dm'opts_dm
Constructive options for type '...'opts_dots
Constructive options for type 'double'opts_double
Constructive options for class 'ellmer::TypeArray`'opts_ellmer_TypeArray
Constructive options for class 'ellmer::TypeBasic`'opts_ellmer_TypeBasic
Constructive options for class 'ellmer::TypeEnum`'opts_ellmer_TypeEnum
Constructive options for class 'ellmer::TypeJsonSchema`'opts_ellmer_TypeJsonSchema
Constructive options for class 'ellmer::TypeObject`'opts_ellmer_TypeObject
Constructive options for type 'environment'opts_environment
Constructive options for type 'externalptr'opts_externalptr
Constructive options for class 'FacetNull'opts_FacetNull
Constructive options for class 'factor'opts_factor
Constructive options for formulasopts_formula
Constructive options for functionsopts_function
Constructive options for class 'ggplot'opts_ggplot
Constructive options for class 'ggplot2::ggplot'opts_ggplot2_ggplot
Constructive options for class 'ggplot2::labels'opts_ggplot2_labels
Constructive options for class 'grouped_df'opts_grouped_df
Constructive options for class 'GuideAxis'opts_GuideAxis
Constructive options for class 'GuideAxisLogticks'opts_GuideAxisLogticks
Constructive options for class 'GuideAxisStack'opts_GuideAxisStack
Constructive options for class 'GuideAxisTheta'opts_GuideAxisTheta
Constructive options for class 'GuideBins'opts_GuideBins
Constructive options for class 'GuideColourbar'opts_GuideColourbar
Constructive options for class 'GuideColoursteps'opts_GuideColoursteps
Constructive options for class 'GuideCustom'opts_GuideCustom
Constructive options for class 'GuideLegend'opts_GuideLegend
Constructive options for class 'GuideNone'opts_GuideNone
Constructive options for class 'Guides'opts_Guides
Constructive options for class 'hexmode'opts_hexmode
Constructive options for type 'integer'opts_integer
Constructive options for class 'integer64'opts_integer64
Constructive options for type 'language'opts_language
Constructive options for class 'Layer' (ggplot2)opts_Layer
Constructive options for type 'list'opts_list
Constructive options for type 'logical'opts_logical
Constructive options for matricesopts_matrix
Constructive options for time-series objetsopts_mts
Constructive options for numeric_versionopts_numeric_version
Constructive options for class 'object'opts_object
Constructive options for class 'octmode'opts_octmode
Constructive options for class 'ordered'opts_ordered
Constructive options for package_versionopts_package_version
Constructive options for pairlistsopts_pairlist
Constructive options for class 'POSIXct'opts_POSIXct
Constructive options for class 'POSIXlt'opts_POSIXlt
Constructive options for class 'quosure'opts_quosure
Constructive options for class 'quosures'opts_quosures
Constructive options for R_system_versionopts_R_system_version
Constructive options for class 'R6'opts_R6
Constructive options for class 'R6ClassGenerator'opts_R6ClassGenerator
Constructive options for type 'raw'opts_raw
Constructive options for class 'rowwise_df'opts_rowwise_df
Constructive options for class 'S4'opts_S4
Constructive options for class 'S7_any'opts_S7_any
Constructive options for class 'S7_base_class'opts_S7_base_class
Constructive options for class 'S7_class'opts_S7_class
Constructive options for class 'S7_external_generic'opts_S7_external_generic
Constructive options for class 'S7_generic'opts_S7_generic
Constructive options for class 'S7_object'opts_S7_object
Constructive options for class 'S7_property'opts_S7_property
Constructive options for class 'S7_S3_class'opts_S7_S3_class
Constructive options for class 'S7_union'opts_S7_union
Constructive options for tibblesopts_tbl_df
Constructive options for time-series objetsopts_ts
Constructive options for class 'data.table'opts_vctrs_list_of
Constructive options for the class 'weakref'opts_weakref
Constructive options for class 'xml_document'opts_xml_document
Constructive options for class 'xts'opts_xts
Constructive options for class 'yearmon'opts_yearmon
Constructive options for class 'yearqtr'opts_yearqtr
Constructive options for class 'zoo'opts_zoo
Constructive options for class 'zooreg'opts_zooreg
Other Opts Functionsopts_bibentry opts_citationFooter opts_citationHeader opts_CoordCartesian opts_CoordFixed opts_CoordFlip opts_CoordMap opts_CoordMunch opts_CoordPolar opts_CoordQuickmap opts_CoordSf opts_CoordTrans opts_difftime opts_element_blank opts_element_grob opts_element_line opts_element_rect opts_element_render opts_element_text opts_error opts_expression opts_FacetGrid opts_FacetWrap opts_ggplot2_element_blank opts_ggplot2_element_geom opts_ggplot2_element_line opts_ggplot2_element_point opts_ggplot2_element_polygon opts_ggplot2_element_rect opts_ggplot2_element_text opts_ggplot2_mapping opts_ggplot2_margin opts_ggplot2_theme opts_ggproto opts_Guide opts_labels opts_margin opts_noquote opts_NULL opts_person opts_rel opts_Scale opts_ScalesList opts_simpleCondition opts_simpleError opts_simpleMessage opts_simpleUnit opts_simpleWarning opts_theme opts_uneval opts_waiver opts_warning other-opts
Extend constructive.cstr_new_class .cstr_new_constructor templates