Changelog
Source:NEWS.md
teal.code 0.7.0
CRAN release: 2025-08-18
Enhancements
- Introduced
get_outputsfunction to fetch objects which have been printed or plotted in theqenvcode.
Miscellaneous
-
eval_codeusesevaluate::evaluateand stores returned outputs in the code’s attribute. - Refactor
eval_codemethod signature to allow for more flexibility when extending theeval_code/withinfunctions. -
get_var(qenv, ...)andjoin(qenv, ...)are hard deprecated.
teal.code 0.6.0
CRAN release: 2025-01-27
Enhancements
- Introduced
[.qenvfunction to subsetqenvobject (code and environment) to specified object names. -
get_code()was extended withnamesparameter and allows the code extraction to be limited to objects stored inqenvbut limited tonames. - Introduced
get_messages()to get messages produced during code evaluation. -
get_code()returns original code formatting (white spaces and comments) passed toeval_code(). -
qenvinherits from theenvironmentclass, allowing to usels(),names(),as.environment()and other functions onqenvobjects.
teal.code 0.5.0
CRAN release: 2024-01-11
Breaking Change
-
qenvobjects should now be created withqenv()rather thannew_qenv(). The new constructor always creates an empty object.new_qenvis now deprecated.
Miscellaneous
- Exported the
qenvclass from the package. - The
@codefield in theqenvclass now holdscharacter, notexpression. - The
get_codemethod returns a single concatenated string of the code. - Added
withinsupport forqenv.errorclass. - Added
get_envmethod that allows to extract environment stored inqenv@envslot.