-
Notifications
You must be signed in to change notification settings - Fork 12
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
1 parent
ba662c6
commit 494cd3e
Showing
26 changed files
with
383 additions
and
296 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,7 +1,7 @@ | ||
Package: xplorerr | ||
Type: Package | ||
Title: Tools for Interactive Data Exploration | ||
Version: 0.1.0.9000 | ||
Version: 0.1.1 | ||
Authors@R: person("Aravind", "Hebbali", email = "[email protected]", role = c("aut", "cre"), | ||
comment = c(ORCID = "0000-0001-9220-9669")) | ||
Description: Tools for interactive data exploration built using 'shiny'. Includes apps for descriptive | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
## Test environments | ||
* local Windows 10, R 3.5.1 | ||
* ubuntu 14.04 (on travis-ci), R 3.4.4, R 3.5.1, R devel | ||
* local Windows 10, R 3.5.2 | ||
* ubuntu 14.04 (on travis-ci), R 3.4.4, R 3.5.2, R devel | ||
* win-builder (devel and release) | ||
|
||
## R CMD check results | ||
|
||
0 errors | 0 warnings | 1 note | ||
|
||
* This is a new release. | ||
|
||
## Reverse dependencies | ||
|
||
This is a new release, so there are no reverse dependencies. | ||
0 errors | 0 warnings | 0 note | ||
|
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 @@ | ||
xplorerr.rsquaredacademy.com |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,85 @@ | ||
$(function() { | ||
|
||
// register a handler to move the focus to the search bar | ||
// upon pressing shift + "/" (i.e. "?") | ||
$(document).on('keydown', function(e) { | ||
if (e.shiftKey && e.keyCode == 191) { | ||
e.preventDefault(); | ||
$("#search-input").focus(); | ||
} | ||
}); | ||
|
||
$(document).ready(function() { | ||
// do keyword highlighting | ||
/* modified from https://jsfiddle.net/julmot/bL6bb5oo/ */ | ||
var mark = function() { | ||
|
||
var referrer = document.URL ; | ||
var paramKey = "q" ; | ||
|
||
if (referrer.indexOf("?") !== -1) { | ||
var qs = referrer.substr(referrer.indexOf('?') + 1); | ||
var qs_noanchor = qs.split('#')[0]; | ||
var qsa = qs_noanchor.split('&'); | ||
var keyword = ""; | ||
|
||
for (var i = 0; i < qsa.length; i++) { | ||
var currentParam = qsa[i].split('='); | ||
|
||
if (currentParam.length !== 2) { | ||
continue; | ||
} | ||
|
||
if (currentParam[0] == paramKey) { | ||
keyword = decodeURIComponent(currentParam[1].replace(/\+/g, "%20")); | ||
} | ||
} | ||
|
||
if (keyword !== "") { | ||
$(".contents").unmark({ | ||
done: function() { | ||
$(".contents").mark(keyword); | ||
} | ||
}); | ||
} | ||
} | ||
}; | ||
|
||
mark(); | ||
}); | ||
}); | ||
|
||
/* Search term highlighting ------------------------------*/ | ||
|
||
function matchedWords(hit) { | ||
var words = []; | ||
|
||
var hierarchy = hit._highlightResult.hierarchy; | ||
// loop to fetch from lvl0, lvl1, etc. | ||
for (var idx in hierarchy) { | ||
words = words.concat(hierarchy[idx].matchedWords); | ||
} | ||
|
||
var content = hit._highlightResult.content; | ||
if (content) { | ||
words = words.concat(content.matchedWords); | ||
} | ||
|
||
// return unique words | ||
var words_uniq = [...new Set(words)]; | ||
return words_uniq; | ||
} | ||
|
||
function updateHitURL(hit) { | ||
|
||
var words = matchedWords(hit); | ||
var url = ""; | ||
|
||
if (hit.anchor) { | ||
url = hit.url_without_anchor + '?q=' + escape(words.join(" ")) + '#' + hit.anchor; | ||
} else { | ||
url = hit.url + '?q=' + escape(words.join(" ")); | ||
} | ||
|
||
return url; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.