-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
184 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Package: WRTDStidal | ||
Type: Package | ||
Title: Weighted regression for water quality evaluation in tidal waters | ||
Version: 0.0.49.9000 | ||
Date: 2016-10-12 | ||
Version: 1.0.1.9000 | ||
Date: 2016-11-01 | ||
Author: Marcus W. Beck [aut, cre] | ||
Maintainer: Marcus W. Beck <[email protected]> | ||
Description: An adaptation for estuaries (tidal waters) of weighted regression | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Binary file modified
BIN
+8 Bytes
(100%)
README_cache/html/unnamed-chunk-7_a949d709fd9d8772fa457c18704dbcd1.RData
Binary file not shown.
Binary file modified
BIN
+2 Bytes
(100%)
README_cache/html/unnamed-chunk-7_a949d709fd9d8772fa457c18704dbcd1.rdx
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
|
||
window.initializeCodeFolding = function(show) { | ||
|
||
// handlers for show-all and hide all | ||
$("#rmd-show-all-code").click(function() { | ||
$('div.r-code-collapse').each(function() { | ||
$(this).collapse('show'); | ||
}); | ||
}); | ||
$("#rmd-hide-all-code").click(function() { | ||
$('div.r-code-collapse').each(function() { | ||
$(this).collapse('hide'); | ||
}); | ||
}); | ||
|
||
// index for unique code element ids | ||
var currentIndex = 1; | ||
|
||
// select all R code blocks | ||
var rCodeBlocks = $('pre.r'); | ||
rCodeBlocks.each(function() { | ||
|
||
// create a collapsable div to wrap the code in | ||
var div = $('<div class="collapse r-code-collapse"></div>'); | ||
if (show) | ||
div.addClass('in'); | ||
var id = 'rcode-643E0F36' + currentIndex++; | ||
div.attr('id', id); | ||
$(this).before(div); | ||
$(this).detach().appendTo(div); | ||
|
||
// add a show code button right above | ||
var showCodeText = $('<span>' + (show ? 'Hide' : 'Code') + '</span>'); | ||
var showCodeButton = $('<button type="button" class="btn btn-default btn-xs code-folding-btn pull-right"></button>'); | ||
showCodeButton.append(showCodeText); | ||
showCodeButton | ||
.attr('data-toggle', 'collapse') | ||
.attr('data-target', '#' + id) | ||
.attr('aria-expanded', show) | ||
.attr('aria-controls', id); | ||
|
||
var buttonRow = $('<div class="row"></div>'); | ||
var buttonCol = $('<div class="col-md-12"></div>'); | ||
|
||
buttonCol.append(showCodeButton); | ||
buttonRow.append(buttonCol); | ||
|
||
div.before(buttonRow); | ||
|
||
// update state of button on show/hide | ||
div.on('hidden.bs.collapse', function () { | ||
showCodeText.text('Code'); | ||
}); | ||
div.on('show.bs.collapse', function () { | ||
showCodeText.text('Hide'); | ||
}); | ||
}); | ||
|
||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
|
||
window.initializeSourceEmbed = function(filename) { | ||
$("#rmd-download-source").click(function() { | ||
var src = window.atob($("#rmd-source-code").html()); | ||
var blob = new Blob([src], {type: "text/x-r-markdown"}); | ||
saveAs(blob, filename); | ||
}); | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
|
||
|
||
window.buildTabsets = function(tocID) { | ||
|
||
// build a tabset from a section div with the .tabset class | ||
function buildTabset(tabset) { | ||
|
||
// check for fade and pills options | ||
var fade = tabset.hasClass("tabset-fade"); | ||
var pills = tabset.hasClass("tabset-pills"); | ||
var navClass = pills ? "nav-pills" : "nav-tabs"; | ||
|
||
// determine the heading level of the tabset and tabs | ||
var match = tabset.attr('class').match(/level(\d) /); | ||
if (match === null) | ||
return; | ||
var tabsetLevel = Number(match[1]); | ||
var tabLevel = tabsetLevel + 1; | ||
|
||
// find all subheadings immediately below | ||
var tabs = tabset.find("div.section.level" + tabLevel); | ||
if (!tabs.length) | ||
return; | ||
|
||
// create tablist and tab-content elements | ||
var tabList = $('<ul class="nav ' + navClass + '" role="tablist"></ul>'); | ||
$(tabs[0]).before(tabList); | ||
var tabContent = $('<div class="tab-content"></div>'); | ||
$(tabs[0]).before(tabContent); | ||
|
||
// build the tabset | ||
tabs.each(function(i) { | ||
|
||
// get the tab div | ||
var tab = $(tabs[i]); | ||
|
||
// get the id then sanitize it for use with bootstrap tabs | ||
var id = tab.attr('id'); | ||
|
||
// remove any table of contents entries associated with | ||
// this ID (since we'll be removing the heading element) | ||
$("div#" + tocID + " li a[href='#" + id + "']").parent().remove(); | ||
|
||
// sanitize the id for use with bootstrap tabs | ||
id = id.replace(/[.\/?&!#<>]/g, '').replace(/\s/g, '_'); | ||
tab.attr('id', id); | ||
|
||
// get the heading element within it, grab it's text, then remove it | ||
var heading = tab.find('h' + tabLevel + ':first'); | ||
var headingText = heading.html(); | ||
heading.remove(); | ||
|
||
// build and append the tab list item | ||
var a = $('<a role="tab" data-toggle="tab">' + headingText + '</a>'); | ||
a.attr('href', '#' + id); | ||
a.attr('aria-controls', id); | ||
var li = $('<li role="presentation"></li>'); | ||
li.append(a); | ||
if (i === 0) | ||
li.attr('class', 'active'); | ||
tabList.append(li); | ||
|
||
// set it's attributes | ||
tab.attr('role', 'tabpanel'); | ||
tab.addClass('tab-pane'); | ||
tab.addClass('tabbed-pane'); | ||
if (fade) | ||
tab.addClass('fade'); | ||
if (i === 0) { | ||
tab.addClass('active'); | ||
if (fade) | ||
tab.addClass('in'); | ||
} | ||
|
||
// move it into the tab content div | ||
tab.detach().appendTo(tabContent); | ||
}); | ||
} | ||
|
||
// convert section divs with the .tabset class to tabsets | ||
var tabsets = $("div.section.tabset"); | ||
tabsets.each(function(i) { | ||
buildTabset($(tabsets[i])); | ||
}); | ||
}; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.