-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report failure when write.xlsx fails. #208
Merged
+205
−104
Merged
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
930c79f
version bumps
jeff-m-sullivan ef83417
package names added to world list
jeff-m-sullivan cea0aad
pre-commit tidied and fs package added
jeff-m-sullivan 7e6a2b4
test to fail when write permissions denied doesn't cause error
jeff-m-sullivan 3d8931e
Revert "test to fail when write permissions denied doesn't cause error"
jeff-m-sullivan b6d893d
test whether write.xlsx throws an error without proper permissions
jeff-m-sullivan ea8389f
file.copy throws warnings, not errors
jeff-m-sullivan 045ef4e
apply styler before substantive change
jeff-m-sullivan ec4505a
removing tryCatch, which was suppressing helpful errors
jeff-m-sullivan 3f59b9c
clean up whitespace
jeff-m-sullivan a8560fd
revdepcheck run - No changes to commit
actions-user 6d68df9
Merge branch 'master' into error-failed-write
jeff-m-sullivan 3aff705
revdepcheck run - No changes to commit
actions-user 4fe562d
Merge branch 'master' into error-failed-write
jeff-m-sullivan d737228
revdepcheck run - No changes to commit
actions-user 0bc49fb
Merge branch 'master' into error-failed-write
jeff-m-sullivan a03fc29
Merge branch 'master' into error-failed-write
jeff-m-sullivan ed1f0d8
test for specific permission denied warning
jeff-m-sullivan ec229fe
remove dependency on fs package
jeff-m-sullivan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ Package: openxlsx | |
Title: Read, Write and Edit xlsx Files | ||
Version: 4.2.4.9000 | ||
Date: 2021-06-08 | ||
Language: en-US | ||
Authors@R: | ||
c(person(given = "Philipp", | ||
family = "Schauberger", | ||
|
@@ -21,18 +20,18 @@ Authors@R: | |
role = "ctb"), | ||
person(given = "Jan Marvin", | ||
family = "Garbuszus", | ||
email = "[email protected]", | ||
role = "ctb"), | ||
role = "ctb", | ||
email = "[email protected]"), | ||
person(given = "Jordan Mark", | ||
family = "Barbone", | ||
role = "ctb", | ||
email = "[email protected]", | ||
comment = c(ORCID = "0000-0001-9788-3628"))) | ||
Description: Simplifies the creation of Excel .xlsx files by | ||
providing a high level interface to writing, styling and editing | ||
worksheets. Through the use of 'Rcpp', read/write times are comparable | ||
to the 'xlsx' and 'XLConnect' packages with the added benefit of | ||
removing the dependency on Java. | ||
Description: Simplifies the creation of Excel .xlsx files by providing a | ||
high level interface to writing, styling and editing worksheets. | ||
Through the use of 'Rcpp', read/write times are comparable to the | ||
'xlsx' and 'XLConnect' packages with the added benefit of removing the | ||
dependency on Java. | ||
License: MIT + file LICENSE | ||
URL: https://ycphs.github.io/openxlsx/index.html, | ||
https://github.com/ycphs/openxlsx | ||
|
@@ -44,19 +43,23 @@ Imports: | |
methods, | ||
Rcpp, | ||
stats, | ||
stringi, | ||
utils, | ||
zip, | ||
stringi | ||
zip | ||
Suggests: | ||
fs (>= 1.5.0), | ||
knitr, | ||
testthat, | ||
rmarkdown, | ||
roxygen2, | ||
rmarkdown | ||
testthat | ||
LinkingTo: | ||
Rcpp | ||
VignetteBuilder: | ||
knitr | ||
Remotes: | ||
r-lib/fs | ||
Encoding: UTF-8 | ||
Language: en-US | ||
RoxygenNote: 7.1.1 | ||
Collate: | ||
'CommentClass.R' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ycphs
Do you know if there any reason why we wouldn't want or be able to simply return the result of the
file.copy()
? Does usinginvisible(1)
satisfy anything?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initially there was no return value and the feature request to have an optional made it necessary to have a default with no return value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value returned was
invisible(1)
which I don't see as useful as having the return value be the result offile.copy()
instead -- especially since iffile.copy()
failssaveWorkbook()
essentially fails. So I guess I'm asking: shouldinvisible(1)
ever be returned or should the result of just befile.copy()
(invisibly) returned?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes that would make more sense and it helps to actually and leads to the initial error.