From bda4cbce6c9edb3e64ec438b85fbd44553afcd19 Mon Sep 17 00:00:00 2001 From: timelyportfolio Date: Tue, 10 Oct 2023 21:40:00 -0500 Subject: [PATCH] update broken links for CRAN (thanks winbuilder) --- docs/pkgdown.yml | 2 +- vignettes/intro_htmlwidgets.Rmd | 2 +- vignettes/intro_inputs.Rmd | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 3842e70..950093c 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -5,5 +5,5 @@ articles: intro_htmlwidgets: intro_htmlwidgets.html intro_inputs: intro_inputs.html intro_reactR: intro_reactR.html -last_built: 2023-10-02T02:32Z +last_built: 2023-10-11T02:37Z diff --git a/vignettes/intro_htmlwidgets.Rmd b/vignettes/intro_htmlwidgets.Rmd index 776a950..4d54ac7 100644 --- a/vignettes/intro_htmlwidgets.Rmd +++ b/vignettes/intro_htmlwidgets.Rmd @@ -66,7 +66,7 @@ system("yarn run webpack") * `yarn install` downloads all of the dependencies listed in `package.json` and creates a new file, `yarn.lock`. You should add this file to revision control. It will be updated whenever you change dependencies and run `yarn install`. **Note: you only need to run it after modifying package.json**. For further documentation on `yarn install`, see the [yarn documentation](https://classic.yarnpkg.com/en/docs/cli/install/). -* `yarn run webpack` compiles the [ES2015](https://babeljs.io/docs/en/learn/) JavaScript source file at `srcjs/sparklines.js` into `inst/htmlwidgets/sparklines.js`. The later file is one actually used by the R package and includes all the relevant JavaScript dependencies in a version of JavaScript that most browsers understand. Note that, if you add `--mode=development` to the end of this command, it will include a [source map](https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map) is included with the compiled JavaScript, which makes JavaScript debugging much easier, but hopefully you won't need to do much of any JavaScript debugging. +* `yarn run webpack` compiles the [ES2015](https://babeljs.io/docs/en/learn/) JavaScript source file at `srcjs/sparklines.js` into `inst/htmlwidgets/sparklines.js`. The later file is one actually used by the R package and includes all the relevant JavaScript dependencies in a version of JavaScript that most browsers understand. Note that, if you add `--mode=development` to the end of this command, it will include a [source map](https://firefox-source-docs.mozilla.org/devtools-user/debugger/how_to/use_a_source_map/index.html) is included with the compiled JavaScript, which makes JavaScript debugging much easier, but hopefully you won't need to do much of any JavaScript debugging. `yarn run webpack` is not strictly a `yarn` command. In fact, `yarn run` simply delegates to the [webpack](https://webpack.js.org/) program. Webpack's configuration is generated by `scaffoldReactWidget` in the file `webpack.config.js`, but you can always change this configuration and/or modify the `yarn run webpack` command to suit your needs. diff --git a/vignettes/intro_inputs.Rmd b/vignettes/intro_inputs.Rmd index 47d2132..693af02 100644 --- a/vignettes/intro_inputs.Rmd +++ b/vignettes/intro_inputs.Rmd @@ -14,8 +14,8 @@ vignette: > knitr::opts_chunk$set(eval = FALSE) ``` -[Shiny](https://shiny.rstudio.com/) comes with a large library of input -[widgets](https://shiny.rstudio.com/gallery/widget-gallery.html) for collecting +[Shiny](https://shiny.posit.co/) comes with a large library of input +[widgets](https://shiny.posit.co/r/gallery/widgets/widget-gallery/) for collecting input from the user and conveying input data to R. If you want a kind of input *not* provided by Shiny — like a color picker, @@ -85,7 +85,7 @@ withr::with_dir( ### Building the JavaScript The next step is to navigate to the newly-created `colorpicker` project and run -the following commands in the terminal. If you're new the terminal, we recommend opening your newly created RStudio `~/colorpicker/colorpicker.Rproj` project file, then running the following in the [RStudio terminal tab](https://support.rstudio.com/hc/en-us/articles/115010737148-Using-the-RStudio-Terminal): +the following commands in the terminal. If you're new the terminal, we recommend opening your newly created RStudio `~/colorpicker/colorpicker.Rproj` project file, then running the following in the [RStudio terminal tab](https://support.posit.co/hc/en-us/articles/115010737148-Using-the-RStudio-Terminal): ``` yarn install