Skip to content

Commit

Permalink
Fix for as.function
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Nov 29, 2023
1 parent 1001363 commit 210fa8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/rxUiGet.R
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ rxUiGet.funPrint <- function(x, ...) {
.var <- .ls[.i]
.val <- .x$meta[[.ls[.i]]]
.isLotri <- FALSE
if (checkmate::checkMatrix(.val, any.missing=FALSE, row.names="strict", col.names="strict")) {
if (checkmate::testMatrix(.val, any.missing=FALSE, row.names="strict", col.names="strict")) {
.dn <- dimnames(.val)
if (identical(.dn[[1]], .dn[[2]]) && isSymmetric(.val)) {
class(.val) <- c("lotriFix", class(.val))
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ rxTest({
})

test_that("meta information parsing", {

one.cmt <- function() {
meta1 <- "meta"
ini({
Expand Down

0 comments on commit 210fa8c

Please sign in to comment.