You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think this is specific to your package...but I think it might be related to htmlwidgets and you might have some ideas? I would really appreciate any thoughts - also feel free to delete this issue if its too off topic... Thanks!
I am working on an R package and using pkgdown to build the documentation. I have a multi-level list that I'd like to view and am using the listviewer package with listviewer::jsonedit to display the list. In view mode (also form mode), the list appears to have some sort of sizing issue - the width of the list dynamically resizes, but is not wide enough to display the contents of the list appropriately. This appears to only be an issue when used in view mode with pkgdown (knitr renders fine in the markdown preview, it displays fine in the RStudio viewer fine, no issue with tree or other modes besides view and form). I have not modified any of the pkgdown defaults. I tried inspecting the HTML, but couldn't figure out what was controlling the column widths...
Given the above, I think there may be something going on specifically with pkgdown or htmlwidgets?
After spending some more time on this, I've found that I can get the view mode to somewhat work...if I indent the entire block of r code 4 spaces. I say somewhat because the listviewer window now appears 'inside' a code block...but it has a scrollbar inside the listviewer window (regardless of how wide I set the output).
Hi @timelyportfolio,
I don't think this is specific to your package...but I think it might be related to htmlwidgets and you might have some ideas? I would really appreciate any thoughts - also feel free to delete this issue if its too off topic... Thanks!
I am working on an R package and using
pkgdown
to build the documentation. I have a multi-level list that I'd like to view and am using thelistviewer
package withlistviewer::jsonedit
to display the list. Inview
mode (alsoform
mode), the list appears to have some sort of sizing issue - the width of the list dynamically resizes, but is not wide enough to display the contents of the list appropriately. This appears to only be an issue when used inview
mode withpkgdown
(knitr
renders fine in the markdown preview, it displays fine in the RStudio viewer fine, no issue withtree
or other modes besidesview
andform
). I have not modified any of the pkgdown defaults. I tried inspecting the HTML, but couldn't figure out what was controlling the column widths...Given the above, I think there may be something going on specifically with pkgdown or htmlwidgets?
Any ideas on why this might be happening?
reprex:
Pkgdown vignette (list collapsed) - not good:
Pkgdown vignette (list expanded) - not good:
RStudio viewer (similar for knitr) - good:
The text was updated successfully, but these errors were encountered: