Skip to content

Commit

Permalink
Fixed R CMD check issues
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPietzschmann committed Nov 22, 2024
1 parent ebc650c commit 68d1d6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ Imports:
covr (>= 3.0.0),
flowr,
logger (>= 0.3.0),
rlang,
stringr,
tools
Suggests:
testthat (>= 3.0.0),
rlang,
withr
Remotes:
flowr=flowr-analysis/flowr-r-adapter
Expand Down
2 changes: 1 addition & 1 deletion R/flowr_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ get_all_nodes <- function() {
query <- list(list(type = "id-map"))
res <- flowr::request_query(con, get_filetoken(), query) |> verify_flowr_response()
map <- res$res$results[["id-map"]]$idMap$k2v
return(setNames(lapply(map, `[[`, 2), lapply(map, `[[`, 1)))
return(stats::setNames(lapply(map, `[[`, 2), lapply(map, `[[`, 1)))
})
}

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ file_with_content <- function(content, ext = ".R") {
skip_if_no_flowr <- function() {
tryCatch(get_connection(),
warning = function(e) {
skip(sprintf("flowr is not reachable under %s:%s", get_option("flowr_host"), get_option("flowr_port")))
testthat::skip(sprintf("flowr is not reachable under %s:%s", get_option("flowr_host"), get_option("flowr_port")))
}
)
}

0 comments on commit 68d1d6b

Please sign in to comment.