Skip to content

Commit

Permalink
added the normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
muschellij2 committed May 28, 2019
1 parent f369685 commit 4a68369
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/robex.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ robex = function(
xinfile = infile
infile = shQuote(infile)
xoutfile = outfile
outfile = file.path(
tools::file_path_as_absolute(dirname(outfile)),
basename(outfile))
outfile = path.expand(outfile)
outfile = normalizePath(outfile, "/")
outfile = file.path(normalizePath(dirname(outfile), "/"),
basename(outfile))
if (.Platform$OS.type == "windows") {
outfile = gsub("\\", "/", outfile, fixed = TRUE)
outfile = gsub("/+", "/", outfile)
Expand Down

0 comments on commit 4a68369

Please sign in to comment.