Skip to content

Commit

Permalink
Fixed issue #9 (file name pattern ignored when reading all graphs fro…
Browse files Browse the repository at this point in the history
…m folder)
  • Loading branch information
martintoreilly committed Jan 25, 2017
1 parent 070e4d3 commit 65e1246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/orca_interface.R
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ read_orca_edge_list <- function(file, format = "ncol") {
#' @export
read_all_graphs_as_orca_edge_lists <- function (source_dir, format = "ncol", pattern = ".txt") {
# Get list of all filenames in firectory that match the pattern
file_names <- dir(source_dir, pattern = ".txt")
file_names <- dir(source_dir, pattern = pattern)
# Read graph data from each ".txt" file as an ORCA-compatible indexed edge list
edges <- purrr::map(file_names, function(file_name) {
read_orca_edge_list(file = file.path(source_dir, file_name), format = "ncol")
Expand Down

0 comments on commit 65e1246

Please sign in to comment.