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

write_clip() doesn't copy the entire data for large dataset. #67

Open
olivroy opened this issue May 16, 2023 · 1 comment
Open

write_clip() doesn't copy the entire data for large dataset. #67

olivroy opened this issue May 16, 2023 · 1 comment

Comments

@olivroy
Copy link

olivroy commented May 16, 2023

Hello,

I was wondering if it would be possible to add a warning or an error, when write_clip() does not copy the full data it had.

I am on Windows, and with > 2,000 rows, and > 7 columns, I am having this issue

Thanks.

@mdlincoln
Copy link
Owner

mdlincoln commented May 17, 2023

Thanks for the report @olivroy and sorry that you're having problems.

Question: do you know what the size is of the text that DOES get copied successfully to your clipboard? (if you paste it into a text file and save it, how big is that file) And what the size is of the full data frame if you write it to CSV? I'm curious how much Windows is truncating.

on Windows, clipr relies on the built-in R function utils::writeClipboard and, from what I remember, it does not offer any insight into whether Windows is truncating contents, which may be different for different users' systems. Thus, I'm not sure that we can have clipr issue a warning. But if there is a rough threshhold that we can use to issue a preemptive warning, I'd add it.

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

No branches or pull requests

2 participants