Changelog
Source:NEWS.md
teal.code 0.6.1.9003
Enhancements
- Introduced
get_outputs
function to fetch objects which have been printed or plotted in theqenv
code.
Miscellaneous
-
eval_code
usesevaluate::evaluate
and stores returned outputs in the code’s attribute. - Refactor
eval_code
method signature to allow for more flexibility when extending theeval_code
/within
functions.
teal.code 0.6.0
CRAN release: 2025-01-27
Enhancements
- Introduced
[.qenv
function to subsetqenv
object (code and environment) to specified object names. -
get_code()
was extended withnames
parameter and allows the code extraction to be limited to objects stored inqenv
but 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()
. -
qenv
inherits from theenvironment
class, allowing to usels()
,names()
,as.environment()
and other functions onqenv
objects.
teal.code 0.5.0
CRAN release: 2024-01-11
Breaking Change
-
qenv
objects should now be created withqenv()
rather thannew_qenv()
. The new constructor always creates an empty object.new_qenv
is now deprecated.
Miscellaneous
- Exported the
qenv
class from the package. - The
@code
field in theqenv
class now holdscharacter
, notexpression
. - The
get_code
method returns a single concatenated string of the code. - Added
within
support forqenv.error
class. - Added
get_env
method that allows to extract environment stored inqenv@env
slot.