Skip to content

Commit

Permalink
#212 Test loadWorkbook works with relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
martinstuder committed Feb 13, 2024
1 parent c832774 commit bee0fd8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions inst/unitTests/runit.loadWorkbook.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,11 @@ test.loadWorkbook <- function() {
# correct password is specified
# Excel2019
wb <- loadWorkbook(pwdProtectedFile, password = "mirai")

# Check that loadWorkbook can handle relative paths (#212)
sourceFile <- rsrc("resources/testLoadWorkbook.xls")
testFile <- "./relative.xls"
file.copy(sourceFile, testFile)
wb <- loadWorkbook(testFile)
checkTrue(is(wb, "workbook"))
}

0 comments on commit bee0fd8

Please sign in to comment.