Changelog
Source:NEWS.md
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.