Skip to content

Commit 4a9d11e

Browse files
update examples
1 parent e7d4596 commit 4a9d11e

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

inst/examples/antd.R

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ library(pipeR)
55
antd <- 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

3131
browsable(
32-
attachDependencies(
32+
tagList(
3333
tl,
34-
list(
35-
html_dependency_react(),
36-
antd
37-
)
34+
html_dependency_react(),
35+
antd
3836
)
3937
)
4038

inst/examples/blueprint.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
'
3333
const 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
3939
const 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
4343
var tbl = <Blueprint.Table.Table numRows={mtcars["car"].length}>
44-
{columns}
44+
{columns}
4545
</Blueprint.Table.Table>
4646
4747
ReactDOM.render(tbl, document.querySelector("#app-table"));

inst/examples/semiotic.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ library(tidyr)
1414
# https://github.com/emeeks/semiotic/issues/70
1515
semiotic <- 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

0 commit comments

Comments
 (0)