Skip to content

Commit c0e6dfd

Browse files
committed
Fix html document
1 parent 9f15ec9 commit c0e6dfd

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

R/main_app.R

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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

3324
max_rows_to_show <- 1000 # Maximum number of rows to show row names in the heatmap
3425
default_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
)

inst/www/help.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ <h4>Who owns the copyright of the produced plots?</h4>
674674

675675
<div class="content-section">
676676
<h2>Install as an R package</h2>
677-
<p>remotes::install_github("gexijin/datamap", ref = "rPackage")</p>
677+
<p>remotes::install_github("gexijin/datamap")</p>
678678
<p>DataMap::run_datamap()</p>
679679
</div>
680680

www/help.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ <h4>Who owns the copyright of the produced plots?</h4>
674674

675675
<div class="content-section">
676676
<h2>Install as an R package</h2>
677-
<p>remotes::install_github("gexijin/datamap", ref = "rPackage")</p>
677+
<p>remotes::install_github("gexijin/datamap")</p>
678678
<p>DataMap::run_datamap()</p>
679679
</div>
680680

0 commit comments

Comments
 (0)