-
Notifications
You must be signed in to change notification settings - Fork 28
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 - insert image into table #85
Comments
I'm open to this. Tell me though, is there any reason you can't do (e.g. in
HTML), something like:
```
escape_contents(my_hux)[1, 1] <- FALSE
my_hux[1, 1] <- '<img src="my-image.png">'
```
|
Only because of the need to produce reports as pdfs rather than html. |
Sorry closed in error |
So, isn't there a TeX equivalent?
Even if there is an equivalent TeX code, there might be a case for this
feature if the code is complicated (and the use case is common enough).
--
Sent from Gmail Mobile
|
I found a Tex example which I could happily adapt: |
Ok. On the face of it, this seems like a legit issue for which there is
some demand. Thanks for reporting. Upvotes and +1s welcome.
--
Sent from Gmail Mobile
|
Is this option available now in Huxtable @pm321 @hughjonesd or is there any other way to insert an image inside the huxtable especially while having a docx output. |
Not yet. If you use `as.flextable`, then you may be able to do this from
within flextable, using e.g. `flextable::as_image`. If you find a way to do
it, come back and tell me. Or even submit a pull request :-)
… |
This is now partly fixed with markdown support in cells, including images like |
Is it possible to or could you add the capacity to insert images into a huxtable?
Ideally as a column variable.
There are some questions on SO which address the issue of images in a table using xtable:
https://stackoverflow.com/questions/25106481/add-an-image-to-a-table-like-output-in-r
https://stackoverflow.com/questions/52482682/add-images-to-table-column-and-increase-row-height-in-rmarkdown-pdf-document
huxtable seems to offer a more flexible environment within which to achieve this.
The text was updated successfully, but these errors were encountered: