R Under development (unstable) (2024-07-18 r86905 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(htmlTable) > > interactiveTable(matrix(c("asdsadadadas", + "DSASDS asd as dasd ad ads dasd dsa ADSADASDASD"), ncol = 2), + minimized.columns = 2)
asdsadadadas DSASDS asd as dasd ...
> > interactiveTable(matrix(c("asdsadadadas", + "DSASDS asd as dasd ad ads dasd dsa ADSADASDASD"), + ncol = 2, + nrow = 10), + minimized.columns = 2, + button = TRUE)
asdsadadadas asdsadadadas
DSASDS asd as dasd ad ads dasd dsa ADSADASDASD DSASDS asd as dasd ...
+
asdsadadadas asdsadadadas
DSASDS asd as dasd ad ads dasd dsa ADSADASDASD DSASDS asd as dasd ...
+
asdsadadadas asdsadadadas
DSASDS asd as dasd ad ads dasd dsa ADSADASDASD DSASDS asd as dasd ...
+
asdsadadadas asdsadadadas
DSASDS asd as dasd ad ads dasd dsa ADSADASDASD DSASDS asd as dasd ...
+
asdsadadadas asdsadadadas
DSASDS asd as dasd ad ads dasd dsa ADSADASDASD DSASDS asd as dasd ...
+
> > > knitr::knit_print(interactiveTable(matrix(c("asdsadadadas", + "DSASDS asd as dasd ad ads dasd dsa ADSADASDASD"), + ncol = 2, + nrow = 10), + minimized.columns = 2)) [1] "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
asdsadadadasasdsadadadas
DSASDS asd as dasd ad ads dasd dsa ADSADASDASDDSASDS asd as dasd ...
asdsadadadasasdsadadadas
DSASDS asd as dasd ad ads dasd dsa ADSADASDASDDSASDS asd as dasd ...
asdsadadadasasdsadadadas
DSASDS asd as dasd ad ads dasd dsa ADSADASDASDDSASDS asd as dasd ...
asdsadadadasasdsadadadas
DSASDS asd as dasd ad ads dasd dsa ADSADASDASDDSASDS asd as dasd ...
asdsadadadasasdsadadadas
DSASDS asd as dasd ad ads dasd dsa ADSADASDASDDSASDS asd as dasd ...
$(document).ready(function(){\n $(\".gmisc_table td .hidden\").map(function(index, el){\n el.parentNode.style[\"original-color\"] = el.parentNode.style[\"background-color\"];\n el.parentNode.style[\"background-color\"] = \"#DDD\";\n });\n\n getSelected = function(){\n var t = '';\n if(window.getSelection){\n t = window.getSelection();\n }else if(document.getSelection){\n t = document.getSelection();\n }else if(document.selection){\n t = document.selection.createRange().text;\n }\n return t.toString();\n };\n\n $(\".gmisc_table td\").map(function(index, el){\n this.style.cursor = \"pointer\";\n el.onmouseup = function(e){\n if (getSelected().length > 0)\n return;\n\n var hidden = this.getElementsByClassName(\"hidden\");\n if (hidden.length > 0){\n this.innerHTML = hidden[0].textContent;\n this.style[\"background-color\"] = this.style[\"original-color\"];\n\n }else{\n $(this).append(\"\");\n\n this.childNodes[0].data = this.childNodes[0].data.substr(0, 20) + \"... \";\n this.style[\"original-color\"] = this.style[\"background-color\"];\n this.style[\"background-color\"] = \"#DDD\";\n }\n };\n });\n});\n" attr(,"class") [1] "knit_asis" attr(,"knit_cacheable") [1] NA > > htmlTable:::print.interactiveTable( + interactiveTable(matrix(c("asdsadadadas", + "DSASDS asd as dasd ad ads dasd dsa ADSADASDASD"), + ncol = 2, + nrow = 10), + minimized.columns = 2, + button = TRUE))
asdsadadadas asdsadadadas
DSASDS asd as dasd ad ads dasd dsa ADSADASDASD DSASDS asd as dasd ...
+
asdsadadadas asdsadadadas
DSASDS asd as dasd ad ads dasd dsa ADSADASDASD DSASDS asd as dasd ...
+
asdsadadadas asdsadadadas
DSASDS asd as dasd ad ads dasd dsa ADSADASDASD DSASDS asd as dasd ...
+
asdsadadadas asdsadadadas
DSASDS asd as dasd ad ads dasd dsa ADSADASDASD DSASDS asd as dasd ...
+
asdsadadadas asdsadadadas
DSASDS asd as dasd ad ads dasd dsa ADSADASDASD DSASDS asd as dasd ...
+
> > proc.time() user system elapsed 0.89 0.15 1.06