Created
October 10, 2018 18:03
-
-
Save leungi/0c82b36db90feb1b968318adadf7c186 to your computer and use it in GitHub Desktop.
dashboard-feedback-for-missing-packages-using-inline-terr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://datashoptalk.com/dashboard-feedback-for-missing-packages-using-inline-terr/ | |
# In text area, insert Calculated Value control in <p></p> tag | |
<h3>Installed Packages</h3> | |
<p>List of missing required packages for this analysis:</P> | |
<p> | |
<SpotfireControl id="e96d46e334a9400c86485e41f584ff82" /> | |
</p> | |
<p><b>Note:</b> Field will show Empty if all packages installed.</p> | |
# In Calculated Value control | |
MostCommon(TERR_String("list.of.packages <- c('sp','lattice','gstat','zoo', | |
'spacetime','xts','intervals','FNN','lpSolve')\n | |
output <- paste(list.of.packages[!(list.of.packages %in% installed.packages()[,'Package'])], | |
sep='', collapse=', ')",[arbitrary_column])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment