Skip to content

Commit

Permalink
update broken links for CRAN (thanks winbuilder)
Browse files Browse the repository at this point in the history
  • Loading branch information
timelyportfolio committed Oct 11, 2023
1 parent f7740c1 commit bda4cbc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion vignettes/intro_htmlwidgets.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
6 changes: 3 additions & 3 deletions vignettes/intro_inputs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bda4cbc

Please sign in to comment.