Skip to content

Commit e3ef928

Browse files
committed
renames: sparklineswidget => sparklines
1 parent d66fa39 commit e3ef928

12 files changed

+488
-265
lines changed

.Rbuildignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
^sparklineswidget\.Rproj$
1+
^sparklines\.Rproj$
22
^\.Rproj\.user$
3+
^node_modules$

DESCRIPTION

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
Package: sparklineswidget
2-
Title: What the Package Does (one line, title case)
1+
Package: sparklines
2+
Title: reactR HTMLWidget Example
33
Version: 0.0.0.9000
4-
Authors@R: person("First", "Last", email = "first.last@example.com", role = c("aut", "cre"))
5-
Description: What the package does (one paragraph).
4+
Authors@R: person("Alan", "Dipert", email = "alan@rstudio.com", role = c("aut", "cre"))
5+
Description: Demonstrates adapting a React-based library (react-sparklines) into an htmlwidget.
66
Depends: R (>= 3.5.1)
7-
License: What license is it under?
7+
License: MIT
88
Encoding: UTF-8
99
LazyData: true
1010
RoxygenNote: 6.1.1

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# react-sparklines HTMLWidget
1+
# sparklines HTMLWidget
22

33
This example demonstrates creating an [htmlwidget](https://www.htmlwidgets.org/) wrapper around the [react-sparklines](http://borisyankov.github.io/react-sparklines/) library.
44

@@ -15,7 +15,7 @@ Building Javascript should work on macOS, Linux, and Windows. The following tool
1515

1616
## R Build Requirements
1717

18-
You should install the parent `reactR` package if you haven't, as this widget depends on it.
18+
You should install the `reactR` package if you haven't, as this widget depends on it.
1919

2020
## Development Workflow
2121

@@ -47,4 +47,4 @@ install.packages("colourpicker")
4747
devtools::install_github("shinySignals")
4848
```
4949

50-
Finally you can try the example app by running [app.R](app.R).
50+
Finally you can try the example app by running [app.R](app.R).

app.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
library(shiny)
2-
library(sparklineswidget)
2+
library(sparklines)
33
library(colourpicker)
44
# devtools::install_github("hadley/shinySignals")
55
library(shinySignals)

inst/htmlwidgets/sparklineswidget.js inst/htmlwidgets/sparklines.js

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/htmlwidgets/sparklines.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/htmlwidgets/sparklineswidget.js.map

-1
This file was deleted.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "react-sparklines",
2+
"name": "sparklines",
33
"version": "1.0.0",
44
"license": "MIT",
55
"dependencies": {
File renamed without changes.
File renamed without changes.

webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
var path = require('path');
22

33
module.exports = {
4-
entry: path.join(__dirname, 'srcjs', 'sparklineswidget.js'),
4+
entry: path.join(__dirname, 'srcjs', 'sparklines.js'),
55
output: {
66
path: path.join(__dirname, 'inst', 'htmlwidgets'),
7-
filename: 'sparklineswidget.js'
7+
filename: 'sparklines.js'
88
},
99
module: {
1010
rules: [

0 commit comments

Comments
 (0)