- go to
- Click on
- Then select
- And paste the URL (
- Finally, click
Here are the only functions that were ran:
Essentially creating a package with
devtools and scaffolding the htmlwidget from the root of the package. You should be familiar with the first function. The second function essentially builds the following:
R/ | gior.R inst/ |-- htmlwidgets/ | |-- gior.js | |-- gior.yaml
Simply for convenience and for one to quickly get on with building the widget, some files were already edited or added.
Edited some meta information that you should change and added necessary
gior.yml file located in the
inst folder was edited from:
# (uncomment to add a dependency) # dependencies: # - name: # version: # src: # script: # stylesheet:
dependencies: - name: three version: 97 src: htmlwidgets/lib/three script: three.min.js - name: gio version: 2.0 src: htmlwidgets/lib/gio-2.0 script: gio.min.js
The blogpost explains what this file does.
lib directory (and its sub directories); we essentially added the dependencies (that are referred to in the YML section above)
R/ | gior.R inst/ |-- htmlwidgets/ | |-- gior.js | |-- gior.yaml | |-- lib/ | | |-- gio-2.0/ | | | |-- gio.min.js | | |-- three/ | | | |-- three.min.js
The package also includes random data for you to test your package which can be loaded with
This is a package, remember that to see changes reflected you will have to run:
CTRL/CMD + SHIFT + Bfrom RStudio.
Note that, as is, the package works but does not pass
R CMD Check.