Skip to content

Commit

Permalink
better stable solution to handle relative path added #1
Browse files Browse the repository at this point in the history
  • Loading branch information
kassambara committed Apr 14, 2017
1 parent 3c329d1 commit ec214df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/qc_report.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ qc_report <- function(qc.path, result.file, experiment = NULL,
interpret = FALSE, template = NULL, preview = TRUE)
{

if(qc.path == ".")
if(qc.path == ".")
qc.path <- getwd()
# partial match of sample file name
# file = "samplename"
Expand All @@ -56,6 +56,7 @@ qc_report <- function(qc.path, result.file, experiment = NULL,

if(!.path.exists(qc.path))
stop("Specified QC path doesn't exist.")
qc.path <- normalizePath(qc.path)

.create_dir(dirname(result.file))

Expand Down

0 comments on commit ec214df

Please sign in to comment.