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

Feature Request: Copy table to clipboard #117

Closed
steventilston opened this issue Apr 26, 2019 · 3 comments
Closed

Feature Request: Copy table to clipboard #117

steventilston opened this issue Apr 26, 2019 · 3 comments

Comments

@steventilston
Copy link

Thanks for all your work on this package.

It would be very helpful to be able to write a Word table to the clipboard, so that it could be pasted directly from RStudio into an existing Word doc or Outlook email.

The idea is this would better support very quick ad hoc work in a business environment (e.g. you get emailed a csv, import it with RStudio, do some quick calcs, and email back a summary table), rather than a more formal project where you're generating a report from scratch etc.

Cheers, Steve

@davidgohel
Copy link
Owner

You're welcome

From what I read, using clipboard from a package would be a problem from CRAN point of view so I am relunctant to go in that direction. BUT you can use print(ft, preview ="docx") and print(ft, preview ="pptx"). This will pop up a Word or PowerPoint document containing only the table (you can then copy paste the table).

I know this is not exactly what you asked but this is also possible to send email with flextable inside, read this article (sorry, it's in French):

https://www.ardata.fr/post/2019/03/04/send-emails-containing-flextable-with-r/

David

@steventilston
Copy link
Author

Thanks, that's actually very helpful. I can see myself using that a lot!

@github-actions
Copy link

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants