Skip to content

Commit edb649b

Browse files
committed
change cmsy sample dataset link and improve its handling for easier maintenance
1 parent 6f6fe6b commit edb649b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

server/labels.R

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
########################### ALL LABELS ###########################
22
output$homeInfo <- renderText({
33
session$userData$page("home")
4+
45
text <- "<h3>Stock Monitoring Tool for limited data</h3>"
56

67
text <- paste0(text,"<p>")
@@ -74,6 +75,9 @@ This tool was designed to allow users with little to no programming experience t
7475

7576
output$cmsyIntroOut <- renderText({
7677
session$userData$page("cmsy-intro")
78+
79+
sample_dataset_url = "https://data.d4science.org/shub/E_N0JSRlVEN3gwdmpjRnp5Y1BIWm5sS1QxZnUzUTRNSlp5ek50R2xlY0ZUZXVDUlFHTFFES3liblJGRSt4YWExMw=="
80+
7781
text <- "<h3><b>CMSY - Catch-Maximum Sustainable Yield</b></h3>"
7882
text <- paste0(text, "<p>")
7983
# text <- paste0(text, "The <b>CMSY</b> method for data-limited stock assessment. Described in <a target='_blank' href='https://www.researchgate.net/publication/309283306_Estimating_fisheries_reference_points_from_catch_and_resilience'>Froese et al 2017</a>")
@@ -112,7 +116,7 @@ output$cmsyIntroOut <- renderText({
112116
text <- paste0(text, "<li><b>bt</b>: the value of the biomass (in tonnes, e.g. 34567), or the value of the CPUE or stock size index (e.g. 0.123), or NA if there is no information. Gaps filled with NA are acceptable for bt, i.e., abundance data can be fewer than catch data.</li>")
113117
text <- paste0(text, "</ul>")
114118
text <- paste0(text, "Other columns are identifiers that you may choose to include, but they are not necessary to run the model.<br><br>")
115-
text <- paste0(text, "Use the <a href=https://data.d4science.org/shub/E_WWI3clpMdGVONG84eVNvblBxOWVPQ2FPUVArYkptQ1JsM2c1K2hkYWpjSlhmeUw1eXI2RGFLZUdMZW5aSis4aQ==> sample dataset </a> as a template to prepare your data.<br><br>")
119+
text <- paste0(text, "Use the <a href=",sample_dataset_url,"> sample dataset </a> as a template to prepare your data.<br><br>")
116120
text <- paste0(text, "<b>Specific considerations regarding your own dataset:</b>")
117121
text <- paste0(text, "<ul>")
118122
text <- paste0(text, "<li>Save your dataset in 'csv' format.</li>")
@@ -139,7 +143,7 @@ output$cmsyIntroOut <- renderText({
139143
text <- paste0(text,"<h4> Workflow Considerations </h4>")
140144
text <- paste0(text,"<strong> To run the CMSY method in the Stock Monitoring Tool :</strong>")
141145
text <- paste0(text, "<ol>")
142-
text <- paste0(text, "<li>Upload a csv file data set of catch time series for one or multiple stocks (see Data Considerations or the <a href='https://data.d4science.org/shub/E_WWI3clpMdGVONG84eVNvblBxOWVPQ2FPUVArYkptQ1JsM2c1K2hkYWpjSlhmeUw1eXI2RGFLZUdMZW5aSis4aQ=='>CMSY Sample dataset</a>).</li>")
146+
text <- paste0(text, "<li>Upload a csv file data set of catch time series for one or multiple stocks (see Data Considerations or the <a href='",sample_dataset_url,"'>CMSY Sample dataset</a>).</li>")
143147
text <- paste0(text, "<ol type='a'>")
144148
text <- paste0(text, "<li> Select the stock upon which to perform the analysis </li>")
145149
text <- paste0(text, "</ol>")
@@ -813,7 +817,7 @@ output$fishMethodsIntroOut <- renderText({
813817

814818
output$cmsySampleDataset <- renderText({
815819
session$userData$page('cmsy-sample')
816-
link <- "<a href='https://data.d4science.org/shub/E_WWI3clpMdGVONG84eVNvblBxOWVPQ2FPUVArYkptQ1JsM2c1K2hkYWpjSlhmeUw1eXI2RGFLZUdMZW5aSis4aQ==' target='_blank'>Click Here</a>"
820+
link <- paste0("<a href='",sample_dataset_url,"' target='_blank'>Click Here</a>")
817821
text <- paste0("<p><h4>", link,"&nbsp; to download a sample dataset that can be used with <b>CMSY</b> methods", "</h4></p>")
818822
text <- paste0(text, "<hr />")
819823
text <- paste0(text, "<p>")
@@ -827,7 +831,7 @@ output$cmsySampleDataset <- renderText({
827831
text <- paste0(text, "</ul>")
828832
text <- paste0(text, "Other columns are identifiers that you may choose to include, but they are not necessary to run the model.<br><br>")
829833

830-
text <- paste0(text, "Use the <a href='https://data.d4science.org/shub/E_WWI3clpMdGVONG84eVNvblBxOWVPQ2FPUVArYkptQ1JsM2c1K2hkYWpjSlhmeUw1eXI2RGFLZUdMZW5aSis4aQ==' target='_blank'> sample dataset </a> as a template to prepare your data.<br><br>")
834+
text <- paste0(text, "Use the <a href='",sample_dataset_url,"' target='_blank'> sample dataset </a> as a template to prepare your data.<br><br>")
831835
text <- paste0(text, "<b>Specific considerations regarding your own dataset:</b>")
832836
text <- paste0(text, "<ul>")
833837
text <- paste0(text, "<li>Save your dataset in 'csv' format.</li>")

0 commit comments

Comments
 (0)