@@ -20,15 +20,6 @@ library(shiny)
2020# Note: The images and html files are saved into two copies!!!!!
2121# when running directly: using www and extdata
2222# when running as a package: using inst/www and inst/extdata
23- addResourcePath(" datamap" , system.file(" www" , package = " datamap" ))
24- # if runing as a package, append "datamap/" to the image path
25- get_image_path <- function (filename ) {
26- if (isNamespaceLoaded(" datamap" )) {
27- paste0(" datamap/" , filename )
28- } else {
29- filename
30- }
31- }
3223
3324max_rows_to_show <- 1000 # Maximum number of rows to show row names in the heatmap
3425default_width <- 600
@@ -135,10 +126,10 @@ ui <- fluidPage(
135126 ),
136127 tabPanel(" About" ,
137128 titlePanel(" DataMap: a portable app for visualizing data matrices v0.11" ),
138- img(src = get_image_path( " heatmap.png" ) , width = " 375px" , height = " 300px" ),
139- img(src = get_image_path( " pca.png" ) , width = " 384px" , height = " 329px" ),
140- img(src = get_image_path( " countries_label.png" ) , width = " 401px" , height = " 300px" ),
141- img(src = get_image_path( " tsne.png" ) , width = " 335px" , height = " 300px" ),
129+ img(src = " heatmap.png" , width = " 375px" , height = " 300px" ),
130+ img(src = " pca.png" , width = " 384px" , height = " 329px" ),
131+ img(src = " countries_label.png" , width = " 401px" , height = " 300px" ),
132+ img(src = " tsne.png" , width = " 335px" , height = " 300px" ),
142133 includeHTML(datamap_resource(" www/help.html" ))
143134 )
144135 )
0 commit comments