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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emphatic with View #14

Open
llrs opened this issue May 26, 2024 · 2 comments
Open

Emphatic with View #14

llrs opened this issue May 26, 2024 · 2 comments

Comments

@llrs
Copy link

llrs commented May 26, 2024

Cool package! I think I'll use a lot the hl_grep function 馃槃 .

When checking some long tables with this kind of simple highlighting would be very helpful to just go through the table to find some interesting rows (although it could be done with first subsetting and printing it on the terminal if you knew what one is looking for).
I was testing hl and I found that it doesn't work well with View (both in Rstudio and raw R): colors are not present in the new window.
I don't know if there is a way to make it compatible with it or not (I tried with as_html but that is not compatible with View as it creates a long html string).

@coolbutuseless
Copy link
Owner

The rendering of colours is quite custom/manual.

I don't think there's any way to pass this colour information to "View()" and have it render it appropriately.

Do you know of any examples of the output from "View" being customised?

@llrs
Copy link
Author

llrs commented May 26, 2024

Now that I think of it no.
I think that Rstudio provides its own View to work with the IDE and I thought it could be used. But gt and similar packages just render the tables in the viewer panel, so I an not sure if it is possible or not.

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