Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
parser: use data.table::fread instead of kmisc::readlines as it is no…
Browse files Browse the repository at this point in the history
… longer available in cran
  • Loading branch information
HendrikSchultheis committed Apr 3, 2018
1 parent 48867f1 commit 3eb6787
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ Imports: shiny,
gplots,
reshape,
rintrojs,
Kmisc,
webshot,
RJSONIO,
ggrepel (>= 0.6.12),
Expand Down
2 changes: 1 addition & 1 deletion R/parser.R
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ parser <- function(file, dec = ".") {
message(paste("Parsing file:", file))

#number of rows for each part
file.lines <- Kmisc::readlines(file)
file.lines <- data.table::fread(file, header = FALSE, fill = TRUE, select = 1)[[1]]
num.header <- length(grep("^!", file.lines))
num.metadata <- length(grep("^#", file.lines))

Expand Down

0 comments on commit 3eb6787

Please sign in to comment.