Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit 65e1246

Browse files
Fixed issue #9 (file name pattern ignored when reading all graphs from folder)
1 parent 070e4d3 commit 65e1246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/orca_interface.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ read_orca_edge_list <- function(file, format = "ncol") {
131131
#' @export
132132
read_all_graphs_as_orca_edge_lists <- function (source_dir, format = "ncol", pattern = ".txt") {
133133
# Get list of all filenames in firectory that match the pattern
134-
file_names <- dir(source_dir, pattern = ".txt")
134+
file_names <- dir(source_dir, pattern = pattern)
135135
# Read graph data from each ".txt" file as an ORCA-compatible indexed edge list
136136
edges <- purrr::map(file_names, function(file_name) {
137137
read_orca_edge_list(file = file.path(source_dir, file_name), format = "ncol")

0 commit comments

Comments
 (0)