Skip to content

Commit

Permalink
Deploying to gh-pages from @ b9036bd 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Feb 5, 2024
1 parent 1c7ad29 commit a8d9070
Show file tree
Hide file tree
Showing 44 changed files with 51 additions and 45 deletions.
2 changes: 1 addition & 1 deletion demos/qwebr-code-cell-options.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@
};

// Store cell data
globalThis.qwebrCellDetails = [{"id":1,"options":{"autorun":"false","fig-height":5,"out-height":"","classes":"","context":"interactive","label":"unnamed-chunk-1","results":"markup","warning":"true","message":"true","fig-width":7,"fig-cap":"","output":"true","comment":"","dpi":72,"out-width":"700px"},"code":"# Write your name here by replace ___\nname <- \"_____\"\nprint(paste0(\"Hello, \", name, \"!\"))"},{"id":2,"options":{"autorun":"true","fig-height":5,"out-height":"","classes":"","context":"setup","label":"unnamed-chunk-2","results":"markup","warning":"true","message":"true","fig-width":7,"fig-cap":"","output":"true","comment":"","dpi":72,"out-width":"700px"},"code":" \n# Generating a simple table\ndata <- data.frame(\n Name = c(\"Alice\", \"Bob\", \"Charlie\"),\n Age = c(25, 30, 22)\n)"},{"id":3,"options":{"autorun":"false","fig-height":5,"out-height":"","classes":"","context":"interactive","label":"unnamed-chunk-3","results":"asis","warning":"true","message":"true","fig-width":7,"fig-cap":"","output":"true","comment":"","dpi":72,"out-width":"700px"},"code":"knitr::kable(data, \"html\")"},{"id":4,"options":{"autorun":"false","fig-height":5,"out-height":"","classes":"","context":"interactive","label":"unnamed-chunk-4","results":"markup","warning":"true","message":"true","fig-width":7,"fig-cap":"","output":"true","comment":"","dpi":72,"out-width":"700px"},"code":"knitr::kable(data, \"html\")"},{"id":5,"options":{"autorun":"true","fig-height":"6","out-height":"","classes":"","context":"output","label":"unnamed-chunk-5","results":"markup","warning":"true","message":"true","fig-width":"6","fig-cap":"","output":"true","comment":"","dpi":72,"out-width":"700px"},"code":"\nplot2::plot2(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)"},{"id":6,"options":{"autorun":"true","fig-height":5,"out-height":"","classes":"","context":"output","label":"unnamed-chunk-6","results":"markup","warning":"true","message":"true","fig-width":7,"fig-cap":"","output":"true","comment":"","dpi":72,"out-width":"700px"},"code":"\nplot2::plot2(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)"},{"id":7,"options":{"autorun":"true","fig-height":"6","out-height":"500px","classes":"","context":"output","label":"unnamed-chunk-7","results":"markup","warning":"true","message":"true","fig-width":"6","fig-cap":"","output":"true","comment":"","dpi":72,"out-width":"500px"},"code":"plot2::plot2(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)"}];
globalThis.qwebrCellDetails = [{"id":1,"options":{"message":"true","label":"unnamed-chunk-1","fig-height":5,"dpi":72,"out-width":"700px","autorun":"false","warning":"true","classes":"","out-height":"","results":"markup","output":"true","fig-cap":"","comment":"","fig-width":7,"context":"interactive"},"code":"# Write your name here by replace ___\nname <- \"_____\"\nprint(paste0(\"Hello, \", name, \"!\"))"},{"id":2,"options":{"message":"true","label":"unnamed-chunk-2","fig-height":5,"dpi":72,"out-width":"700px","autorun":"true","warning":"true","classes":"","out-height":"","results":"markup","output":"true","fig-cap":"","comment":"","fig-width":7,"context":"setup"},"code":" \n# Generating a simple table\ndata <- data.frame(\n Name = c(\"Alice\", \"Bob\", \"Charlie\"),\n Age = c(25, 30, 22)\n)"},{"id":3,"options":{"message":"true","label":"unnamed-chunk-3","fig-height":5,"dpi":72,"out-width":"700px","autorun":"false","warning":"true","classes":"","out-height":"","results":"asis","output":"true","fig-cap":"","comment":"","fig-width":7,"context":"interactive"},"code":"knitr::kable(data, \"html\")"},{"id":4,"options":{"message":"true","label":"unnamed-chunk-4","fig-height":5,"dpi":72,"out-width":"700px","autorun":"false","warning":"true","classes":"","out-height":"","results":"markup","output":"true","fig-cap":"","comment":"","fig-width":7,"context":"interactive"},"code":"knitr::kable(data, \"html\")"},{"id":5,"options":{"message":"true","label":"unnamed-chunk-5","fig-height":"6","dpi":72,"out-width":"700px","autorun":"true","warning":"true","classes":"","out-height":"","results":"markup","output":"true","fig-cap":"","comment":"","fig-width":"6","context":"output"},"code":"\nplot2::plot2(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)"},{"id":6,"options":{"message":"true","label":"unnamed-chunk-6","fig-height":5,"dpi":72,"out-width":"700px","autorun":"true","warning":"true","classes":"","out-height":"","results":"markup","output":"true","fig-cap":"","comment":"","fig-width":7,"context":"output"},"code":"\nplot2::plot2(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)"},{"id":7,"options":{"message":"true","label":"unnamed-chunk-7","fig-height":"6","dpi":72,"out-width":"500px","autorun":"true","warning":"true","classes":"","out-height":"500px","results":"markup","output":"true","fig-cap":"","comment":"","fig-width":"6","context":"output"},"code":"plot2::plot2(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)"}];

</script>
<script type="module">
Expand Down
2 changes: 1 addition & 1 deletion demos/qwebr-custom-repository.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@
};

// Store cell data
globalThis.qwebrCellDetails = [{"code":"# Check to see if the function works\ndemorwasmbinary::in_webr()\n\n# View help documentation\n?demorwasmbinary::in_webr","id":1,"options":{"warning":"true","label":"unnamed-chunk-1","comment":"","message":"true","output":"true","classes":"","out-width":"700px","out-height":"","autorun":"false","results":"markup","context":"interactive","fig-cap":"","fig-height":5,"dpi":72,"fig-width":7}}];
globalThis.qwebrCellDetails = [{"id":1,"code":"# Check to see if the function works\ndemorwasmbinary::in_webr()\n\n# View help documentation\n?demorwasmbinary::in_webr","options":{"context":"interactive","results":"markup","out-height":"","fig-cap":"","autorun":"false","fig-height":5,"message":"true","output":"true","comment":"","warning":"true","out-width":"700px","fig-width":7,"label":"unnamed-chunk-1","classes":"","dpi":72}}];

</script>
<script type="module">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
};

// Store cell data
globalThis.qwebrCellDetails = [{"id":1,"options":{"context":"interactive","output":"true","results":"markup","autorun":"false","out-height":"","dpi":72,"comment":"","classes":"","warning":"true","out-width":"700px","fig-cap":"","fig-width":7,"fig-height":5,"label":"unnamed-chunk-1","message":"true"},"code":"print(\"Hello {quarto-webr} world!\")\nSys.sleep(5) # Sleep for 5 seconds"},{"id":2,"options":{"context":"interactive","output":"true","results":"markup","autorun":"false","out-height":"","dpi":72,"comment":"","classes":"","warning":"true","out-width":"700px","fig-cap":"","fig-width":7,"fig-height":5,"label":"unnamed-chunk-2","message":"true"},"code":"-3 + 5\nSys.sleep(5) # Sleep for 5 seconds"},{"id":3,"options":{"context":"interactive","output":"true","results":"markup","autorun":"false","out-height":"","dpi":72,"comment":"","classes":"","warning":"true","out-width":"700px","fig-cap":"","fig-width":7,"fig-height":5,"label":"unnamed-chunk-3","message":"true"},"code":"?mean\nSys.sleep(5) # Sleep for 5 seconds"}];
globalThis.qwebrCellDetails = [{"code":"print(\"Hello {quarto-webr} world!\")\nSys.sleep(5) # Sleep for 5 seconds","id":1,"options":{"fig-height":5,"label":"unnamed-chunk-1","message":"true","out-width":"700px","warning":"true","results":"markup","context":"interactive","dpi":72,"out-height":"","fig-width":7,"output":"true","classes":"","fig-cap":"","autorun":"false","comment":""}},{"code":"-3 + 5\nSys.sleep(5) # Sleep for 5 seconds","id":2,"options":{"fig-height":5,"label":"unnamed-chunk-2","message":"true","out-width":"700px","warning":"true","results":"markup","context":"interactive","dpi":72,"out-height":"","fig-width":7,"output":"true","classes":"","fig-cap":"","autorun":"false","comment":""}},{"code":"?mean\nSys.sleep(5) # Sleep for 5 seconds","id":3,"options":{"fig-height":5,"label":"unnamed-chunk-3","message":"true","out-width":"700px","warning":"true","results":"markup","context":"interactive","dpi":72,"out-height":"","fig-width":7,"output":"true","classes":"","fig-cap":"","autorun":"false","comment":""}}];

</script>
<script type="module">
Expand Down
2 changes: 1 addition & 1 deletion demos/qwebr-non-interactive-areas.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
};

// Store cell data
globalThis.qwebrCellDetails = [{"code":"g <- ggplot(mtcars, aes(x = wt, y = mpg)) \n\nSys.sleep(0.5)","id":1,"options":{"fig-cap":"","warning":"true","results":"markup","label":"unnamed-chunk-1","fig-height":5,"classes":"","message":"true","context":"setup","comment":"","output":"true","dpi":72,"autorun":"true","fig-width":7,"out-height":"","out-width":"700px"}},{"code":"g + geom_point()\n\nSys.sleep(0.5)","id":2,"options":{"fig-cap":"","warning":"true","results":"markup","label":"unnamed-chunk-2","fig-height":5,"classes":"","message":"true","context":"output","comment":"","output":"true","dpi":72,"autorun":"true","fig-width":7,"out-height":"","out-width":"700px"}},{"code":"g + geom_point(aes(colour = factor(cyl)))\nSys.sleep(0.5)","id":3,"options":{"fig-cap":"","warning":"true","results":"markup","label":"unnamed-chunk-3","fig-height":5,"classes":"","message":"true","context":"output","comment":"","output":"true","dpi":72,"autorun":"true","fig-width":7,"out-height":"","out-width":"700px"}},{"code":"g","id":4,"options":{"fig-cap":"","warning":"true","results":"markup","label":"unnamed-chunk-4","fig-height":5,"classes":"","message":"true","context":"interactive","comment":"","output":"true","dpi":72,"autorun":"false","fig-width":7,"out-height":"","out-width":"700px"}}];
globalThis.qwebrCellDetails = [{"id":1,"options":{"classes":"","output":"true","context":"setup","fig-cap":"","label":"unnamed-chunk-1","out-height":"","comment":"","dpi":72,"warning":"true","fig-width":7,"message":"true","out-width":"700px","results":"markup","autorun":"true","fig-height":5},"code":"g <- ggplot(mtcars, aes(x = wt, y = mpg)) \n\nSys.sleep(0.5)"},{"id":2,"options":{"classes":"","output":"true","context":"output","fig-cap":"","label":"unnamed-chunk-2","out-height":"","comment":"","dpi":72,"warning":"true","fig-width":7,"message":"true","out-width":"700px","results":"markup","autorun":"true","fig-height":5},"code":"g + geom_point()\n\nSys.sleep(0.5)"},{"id":3,"options":{"classes":"","output":"true","context":"output","fig-cap":"","label":"unnamed-chunk-3","out-height":"","comment":"","dpi":72,"warning":"true","fig-width":7,"message":"true","out-width":"700px","results":"markup","autorun":"true","fig-height":5},"code":"g + geom_point(aes(colour = factor(cyl)))\nSys.sleep(0.5)"},{"id":4,"options":{"classes":"","output":"true","context":"interactive","fig-cap":"","label":"unnamed-chunk-4","out-height":"","comment":"","dpi":72,"warning":"true","fig-width":7,"message":"true","out-width":"700px","results":"markup","autorun":"false","fig-height":5},"code":"g"}];

</script>
<script type="module">
Expand Down
2 changes: 1 addition & 1 deletion demos/qwebr-setting-options-in-document-yaml.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
};

// Store cell data
globalThis.qwebrCellDetails = [{"options":{"warning":"true","fig-height":5,"out-height":"","results":"markup","output":"true","comment":"","fig-width":7,"label":"unnamed-chunk-1","out-width":"700px","fig-cap":"","autorun":"false","context":"interactive","classes":"","message":"true","dpi":72},"id":1,"code":"library(\"ggplot2\")\n\nggplot()"}];
globalThis.qwebrCellDetails = [{"options":{"classes":"","warning":"true","out-width":"700px","label":"unnamed-chunk-1","fig-cap":"","results":"markup","comment":"","output":"true","autorun":"false","context":"interactive","message":"true","fig-height":5,"fig-width":7,"dpi":72,"out-height":""},"id":1,"code":"library(\"ggplot2\")\n\nggplot()"}];

</script>
<script type="module">
Expand Down
4 changes: 2 additions & 2 deletions examples/blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ <h5 class="quarto-listing-category-title">Categories</h5><div class="quarto-list

<div class="quarto-listing quarto-listing-container-default" id="listing-listing">
<div class="list quarto-listing-default">
<div class="quarto-post image-right" data-index="0" data-categories="news,code,analysis" data-listing-date-sort="1699833600000" data-listing-file-modified-sort="1707129763285" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="125">
<div class="quarto-post image-right" data-index="0" data-categories="news,code,analysis" data-listing-date-sort="1699833600000" data-listing-file-modified-sort="1707130630532" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="125">
<div class="thumbnail">
<p><a href="./posts/embed-slides/index.html" class="no-external"></a></p><a href="./posts/embed-slides/index.html" class="no-external">
<p><img src="./posts/embed-slides/image.jpg" class="thumbnail-image"></p>
Expand Down Expand Up @@ -244,7 +244,7 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="1" data-categories="news,code,analysis" data-listing-date-sort="1699747200000" data-listing-file-modified-sort="1707129763285" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="41">
<div class="quarto-post image-right" data-index="1" data-categories="news,code,analysis" data-listing-date-sort="1699747200000" data-listing-file-modified-sort="1707130630532" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="41">
<div class="thumbnail">
<p><a href="./posts/post-with-code/index.html" class="no-external"></a></p><a href="./posts/post-with-code/index.html" class="no-external">
<p><img src="./posts/post-with-code/image.jpg" class="thumbnail-image"></p>
Expand Down
2 changes: 1 addition & 1 deletion examples/blog/posts/post-with-code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
};

// Store cell data
globalThis.qwebrCellDetails = [{"id":1,"code":"print(\"Hello blog Quarto world!\")","options":{"label":"unnamed-chunk-1","classes":"","results":"markup","fig-height":5,"autorun":"false","dpi":72,"fig-cap":"","comment":"","output":"true","message":"true","fig-width":7,"context":"interactive","out-height":"","out-width":"700px","warning":"true"}}];
globalThis.qwebrCellDetails = [{"id":1,"code":"print(\"Hello blog Quarto world!\")","options":{"context":"interactive","classes":"","warning":"true","results":"markup","fig-cap":"","message":"true","out-width":"700px","autorun":"false","dpi":72,"fig-height":5,"comment":"","out-height":"","output":"true","fig-width":7,"label":"unnamed-chunk-1"}}];

</script>
<script type="module">
Expand Down
2 changes: 1 addition & 1 deletion examples/book/example-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
};

// Store cell data
globalThis.qwebrCellDetails = [{"code":"within(mtcars, {\n mtcars[order(cyl, disp), , drop = FALSE]\n})","options":{"label":"unnamed-chunk-1","autorun":"false","fig-cap":"","out-width":"700px","comment":"","dpi":72,"warning":"true","context":"interactive","results":"markup","message":"true","output":"true","classes":"","fig-height":5,"out-height":"","fig-width":7},"id":1},{"code":"library(dplyr)\nmtcars |> \n arrange(cyl, disp)","options":{"label":"unnamed-chunk-2","autorun":"false","fig-cap":"","out-width":"700px","comment":"","dpi":72,"warning":"true","context":"interactive","results":"markup","message":"true","output":"true","classes":"","fig-height":5,"out-height":"","fig-width":7},"id":2},{"code":"mtcars_by <- by(mtcars, mtcars$cyl, function(df) {\n with(df, data.frame(cyl = cyl[[1]], mean = mean(disp), n = nrow(df)))\n})\ndo.call(rbind, mtcars_by)","options":{"label":"unnamed-chunk-3","autorun":"false","fig-cap":"","out-width":"700px","comment":"","dpi":72,"warning":"true","context":"interactive","results":"markup","message":"true","output":"true","classes":"","fig-height":5,"out-height":"","fig-width":7},"id":3},{"code":"library(dplyr)\n\nmtcars |> \n group_by(cyl) |> \n summarise(mean = mean(disp), n = n())","options":{"label":"unnamed-chunk-4","autorun":"false","fig-cap":"","out-width":"700px","comment":"","dpi":72,"warning":"true","context":"interactive","results":"markup","message":"true","output":"true","classes":"","fig-height":5,"out-height":"","fig-width":7},"id":4},{"code":"plot(mtcars$wt, mtcars$mpg,\n main = \"Scatterplot in Base R\",\n xlab = \"Car Weight\", ylab = \"MPG\", \n col = \"blue\", lwd = 1)\nabline(lm(mtcars$mpg ~ mtcars$wt), col = \"red\")","options":{"label":"unnamed-chunk-5","autorun":"false","fig-cap":"","out-width":"700px","comment":"","dpi":72,"warning":"true","context":"interactive","results":"markup","message":"true","output":"true","classes":"","fig-height":5,"out-height":"","fig-width":7},"id":5},{"code":"library(ggplot2)\n\nggplot(mtcars, aes(x = wt, y = mpg)) +\n geom_point(size=2, color=\"blue\", stroke=1) + \n geom_smooth(method=lm, color=\"red\") +\n ggtitle(\"Scatterplot in ggplot2\") +\n xlab(\"Car Weight\")","options":{"label":"unnamed-chunk-6","autorun":"false","fig-cap":"","out-width":"700px","comment":"","dpi":72,"warning":"true","context":"interactive","results":"markup","message":"true","output":"true","classes":"","fig-height":5,"out-height":"","fig-width":7},"id":6}];
globalThis.qwebrCellDetails = [{"code":"within(mtcars, {\n mtcars[order(cyl, disp), , drop = FALSE]\n})","options":{"comment":"","message":"true","results":"markup","fig-height":5,"warning":"true","label":"unnamed-chunk-1","context":"interactive","out-width":"700px","fig-cap":"","dpi":72,"autorun":"false","out-height":"","classes":"","output":"true","fig-width":7},"id":1},{"code":"library(dplyr)\nmtcars |> \n arrange(cyl, disp)","options":{"comment":"","message":"true","results":"markup","fig-height":5,"warning":"true","label":"unnamed-chunk-2","context":"interactive","out-width":"700px","fig-cap":"","dpi":72,"autorun":"false","out-height":"","classes":"","output":"true","fig-width":7},"id":2},{"code":"mtcars_by <- by(mtcars, mtcars$cyl, function(df) {\n with(df, data.frame(cyl = cyl[[1]], mean = mean(disp), n = nrow(df)))\n})\ndo.call(rbind, mtcars_by)","options":{"comment":"","message":"true","results":"markup","fig-height":5,"warning":"true","label":"unnamed-chunk-3","context":"interactive","out-width":"700px","fig-cap":"","dpi":72,"autorun":"false","out-height":"","classes":"","output":"true","fig-width":7},"id":3},{"code":"library(dplyr)\n\nmtcars |> \n group_by(cyl) |> \n summarise(mean = mean(disp), n = n())","options":{"comment":"","message":"true","results":"markup","fig-height":5,"warning":"true","label":"unnamed-chunk-4","context":"interactive","out-width":"700px","fig-cap":"","dpi":72,"autorun":"false","out-height":"","classes":"","output":"true","fig-width":7},"id":4},{"code":"plot(mtcars$wt, mtcars$mpg,\n main = \"Scatterplot in Base R\",\n xlab = \"Car Weight\", ylab = \"MPG\", \n col = \"blue\", lwd = 1)\nabline(lm(mtcars$mpg ~ mtcars$wt), col = \"red\")","options":{"comment":"","message":"true","results":"markup","fig-height":5,"warning":"true","label":"unnamed-chunk-5","context":"interactive","out-width":"700px","fig-cap":"","dpi":72,"autorun":"false","out-height":"","classes":"","output":"true","fig-width":7},"id":5},{"code":"library(ggplot2)\n\nggplot(mtcars, aes(x = wt, y = mpg)) +\n geom_point(size=2, color=\"blue\", stroke=1) + \n geom_smooth(method=lm, color=\"red\") +\n ggtitle(\"Scatterplot in ggplot2\") +\n xlab(\"Car Weight\")","options":{"comment":"","message":"true","results":"markup","fig-height":5,"warning":"true","label":"unnamed-chunk-6","context":"interactive","out-width":"700px","fig-cap":"","dpi":72,"autorun":"false","out-height":"","classes":"","output":"true","fig-width":7},"id":6}];

</script>
<script type="module">
Expand Down
Loading

0 comments on commit a8d9070

Please sign in to comment.