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

Commit

Permalink
Merge pull request #9 from HendrikSchultheis/na
Browse files Browse the repository at this point in the history
Patch No. 2
  • Loading branch information
HendrikSchultheis authored Apr 3, 2018
2 parents 209f7e7 + 3eb6787 commit 406eee6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 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/featureSelector.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ featureSelector <- function(input, output, session, data, features = NULL, featu
render = DT::JS(
"function(data, type, row) {",
paste("var length =", truncate),
"return typeof data !== 'number' && type === 'display' && data.length > length ?",
"return typeof data !== 'number' && data !== null && type === 'display' && data.length > length ?",
"'<span title=\"' + data + '\">' + data.substr(0, length) + '...</span>' : data;",
"}"
)
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 406eee6

Please sign in to comment.