Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[skip vbump] upversion to 0.6.0 #242

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Package
Package: teal.code
Title: Code Storage and Execution Class for 'teal' Applications
Version: 0.5.0.9022
Date: 2025-01-07
Version: 0.6.0
Date: 2025-01-24
Authors@R: c(
person("Dawid", "Kaledkowski", , "[email protected]", role = c("aut", "cre")),
person("Aleksander", "Chlebowski", , "[email protected]", role = "aut"),
Expand Down
17 changes: 11 additions & 6 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
# teal.code 0.5.0.9022
# teal.code 0.6.0

### Enhancements

* Introduced `[.qenv` function to subset `qenv` object (code and environment) to specified object names. #211
* Introduced `[.qenv` function to subset `qenv` object (code and environment) to specified object names.
* `get_code()` was extended with `names` parameter and allows the code extraction to be limited to objects stored in
`qenv` but limited to `names`. #210
* Introduced `get_messages()` to get messages produced during code evaluation. #217
* `get_code()` returns original code formatting (white spaces and comments) passed to `eval_code()`. #212
`qenv` but limited to `names`.
* Introduced `get_messages()` to get messages produced during code evaluation.
* `get_code()` returns original code formatting (white spaces and comments) passed to `eval_code()`.
* `qenv` inherits from the `environment` class, allowing to use `ls()`, `names()`, `as.environment()` and other functions on `qenv` objects.

### Miscellaneous

* `join()` method is deprecated, please use `c()` instead
* `get_var()` method is deprecated, please use `get`, `[[` or `$` instead.
* Remove deprecated function `new_qenv`.
* Numerous bug fixes

# teal.code 0.5.0

### Breaking Change

* `qenv` objects should now be created with `qenv()` rather than `new_qenv()` (which has been removed). The new constructor always creates an empty object.
* `qenv` objects should now be created with `qenv()` rather than `new_qenv()`. The new constructor always creates an empty object. `new_qenv` is now deprecated.

### Miscellaneous

Expand Down
2 changes: 1 addition & 1 deletion R/qenv-get_var.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ setGeneric("get_var", function(object, var) {
})

setMethod("get_var", signature = c("qenv", "character"), function(object, var) {
lifecycle::deprecate_soft("0.5.1", "get_var()", "base::get()")
lifecycle::deprecate_soft("0.6.0", "get_var()", "base::get()")
tryCatch(
get(var, envir = [email protected], inherits = FALSE),
error = function(e) {
Expand Down
6 changes: 3 additions & 3 deletions R/qenv-join.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,16 @@
setGeneric("join", function(x, y) standardGeneric("join"))

setMethod("join", signature = c("qenv", "qenv"), function(x, y) {
lifecycle::deprecate_soft("0.5.1", "join()", "c()")
lifecycle::deprecate_soft("0.6.0", "join()", "c()")
c(x, y)
})

setMethod("join", signature = c("qenv", "qenv.error"), function(x, y) {
lifecycle::deprecate_soft("0.5.1", "join()", "c()")
lifecycle::deprecate_soft("0.6.0", "join()", "c()")
y
})

setMethod("join", signature = c("qenv.error", "ANY"), function(x, y) {
lifecycle::deprecate_soft("0.5.1", "join()", "c()")
lifecycle::deprecate_soft("0.6.0", "join()", "c()")
x
})
Loading