Skip to content

Commit

Permalink
New function-declaration style
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr authored Mar 6, 2025
1 parent 962cb6f commit 2446094
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions R/foreign.R
Original file line number Diff line number Diff line change
Expand Up @@ -597,10 +597,16 @@ write.graph.dot <- function(graph, file, ...) {
#' @export
#' @keywords graphs
graph_from_graphdb <- function(
url = NULL,
prefix = "iso", type = "r001", nodes = NULL, pair = "A", which = 0,
base = "https://github.com/igraph/graphsdb/raw/refs/heads/main",
compressed = TRUE, directed = TRUE) {
url = NULL,
prefix = "iso",
type = "r001",
nodes = NULL,
pair = "A",
which = 0,
base = "https://github.com/igraph/graphsdb/raw/refs/heads/main",
compressed = TRUE,
directed = TRUE
) {
if (is.null(nodes) && is.null(url)) {
cli::cli_abort("Either {.arg nodes}' or `{.arg url}' must be non-null.")
}
Expand Down

0 comments on commit 2446094

Please sign in to comment.