File tree Expand file tree Collapse file tree 3 files changed +11
-13
lines changed Expand file tree Collapse file tree 3 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ library(pipeR)
55antd <- htmlDependency(
66 name = " antd" ,
77 version = " 2.13.10" ,
8- src = c(href = " https://unpkg.com/antd/dist/ " ),
8+ src = c(href = " https://unpkg.com/antd@2.13.10 /dist" ),
99 script = " antd.min.js" ,
1010 stylesheet = " antd.min.css"
1111)
@@ -29,12 +29,10 @@ tl <- tagList(
2929)
3030
3131browsable(
32- attachDependencies (
32+ tagList (
3333 tl ,
34- list (
35- html_dependency_react(),
36- antd
37- )
34+ html_dependency_react(),
35+ antd
3836 )
3937)
4038
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ blueprint <- htmlDependency(
99 version = " 1.1.4" ,
1010 src = c(href = " https://unpkg.com/@blueprintjs/" ),
1111 script = c(" core/dist/core.bundle.js" ," table/dist/table.bundle.js" ),
12- stylesheet = c(" core/dist/ blueprint.css" , " table/dist /table.css" )
12+ stylesheet = c(" core/lib/css/ blueprint.css" , " table/lib/css /table.css" )
1313)
1414
1515# make sure we have dependencies as expected
@@ -31,17 +31,17 @@ tagList(
3131 sprintf(
3232'
3333const mtcars = %s;
34- const renderCell = (rowIndex, colIndex) => {
34+ const cellRenderer = (rowIndex, colIndex) => {
3535 var colname = Object.keys(mtcars)[colIndex]
3636 return <Blueprint.Table.Cell>{`${mtcars[colname][rowIndex]}`}</Blueprint.Table.Cell>
3737};
3838
3939const columns = Object.keys(mtcars).map(function(colname) {
40- return <Blueprint.Table.Column name={colname} renderCell={renderCell }/>
40+ return <Blueprint.Table.Column name={colname} renderCell={cellRenderer }/>
4141});
4242
4343var tbl = <Blueprint.Table.Table numRows={mtcars["car"].length}>
44- {columns}
44+ {columns}
4545</Blueprint.Table.Table>
4646
4747ReactDOM.render(tbl, document.querySelector("#app-table"));
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ library(tidyr)
1414# https://github.com/emeeks/semiotic/issues/70
1515semiotic <- htmlDependency(
1616 name = " semiotic" ,
17- version = " 1.2.4 " ,
18- src = c(href = " https://rawgit .com/timelyportfolio/ semiotic/standalone/ dist" ),
19- script = " semiotic.js"
17+ version = " 1.7.12 " ,
18+ src = c(href = " https://unpkg .com/semiotic/dist/ " ),
19+ script = " semiotic.min. js"
2020)
2121
2222# original data was in wide format
You can’t perform that action at this time.
0 commit comments