Skip to content
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

writeData() force evaluation of x before options are set #265

Closed
wants to merge 2 commits into from

Conversation

jmbarbone
Copy link
Contributor

@jmbarbone jmbarbone commented Sep 30, 2021

Simply using force(x) before options seems to do the trick.

No local test fails.

resolves #264

@codecov-commenter
Copy link

Codecov Report

Merging #265 (ceb1d25) into master (0cc668b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #265   +/-   ##
=======================================
  Coverage   66.36%   66.37%           
=======================================
  Files          34       34           
  Lines        8965     8966    +1     
=======================================
+ Hits         5950     5951    +1     
  Misses       3015     3015           
Impacted Files Coverage Δ
R/writeData.R 88.33% <100.00%> (+0.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe7bd5b...ceb1d25. Read the comment docs.

@jmbarbone jmbarbone changed the title resolves #264 writeData() force evaluation of x before options are set Sep 30, 2021
out <- read.xlsx(wbfile)

# Possibly overkill

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤣 Just my thoughts

NEWS.md Outdated
@@ -9,12 +9,11 @@
* add option to save as read only recommended ([#201](/~https://github.com/ychps/openxlsx/issues/201))
* fixed writing hyperlink formulas ([#200](/~https://github.com/ychps/openxlsx/issues/200))
* `write.xlsx()` now throws an error if it doesn't have write permissions ([#190](/~https://github.com/ycphs/openxlsx/issues/190))
* `write.xlsx()` now again uses the default of `overwrite = TRUE` for saving files ([#249](/~https://github.com/ycphs/openxlsx/issues/249))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you remove this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By mistake probably. Didn't notice this.

@JanMarvin
Copy link
Collaborator

Thanks, simple and elegant! LGTM!

@JanMarvin
Copy link
Collaborator

could you please rebase on/or merge with master?

@JanMarvin
Copy link
Collaborator

merged in d2f7e03 , thanks

@JanMarvin JanMarvin closed this Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

writeData converts character column to numeric value
3 participants