Changelog
Source:NEWS.md
teal.code 0.5.0.9016
Enhancements
- Introduced
[.qenv
function to subsetqenv
object (code and environment) to specified object names. #211 -
get_code()
was extended withnames
parameter and allows the code extraction to be limited to objects stored inqenv
but limited tonames
. #210 - Introduced
get_messages()
to get messages produced during code evaluation. #217 -
get_code()
returns original code formatting (white spaces and comments) passed toeval_code()
. #212 -
qenv
inherits from theenvironment
class, allowing to usels()
,names()
,as.environment()
and other functions onqenv
objects. -
join()
method is deprecated, please usec()
instead -
get_var()
method is deprecated, please useget
,[[
or$
instead.
teal.code 0.5.0
CRAN release: 2024-01-11
Breaking Change
-
qenv
objects should now be created withqenv()
rather thannew_qenv()
(which has been removed). The new constructor always creates an empty object.
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.