Skip to content

Commit 8a436ee

Browse files
committed
Merge branch 'htmlwidget' of https://github.com/gvegayon/rgexf into htmlwidget
2 parents a4a69e5 + a4afcbd commit 8a436ee

4 files changed

Lines changed: 24 additions & 15 deletions

File tree

.gitignore

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
1-
*.(R|r)proj.user
2-
*.(R|r)history
3-
*.(R|r)Data
4-
*.(R|r)proj
5-
*.(R|r)buildignore
6-
.(R|r)proj.user
1+
*.Rproj.user
2+
*.rproj.user
3+
*.Rhistory
4+
*.rhistory
5+
.Rhistory
6+
.rhistory
7+
*.RData
8+
*.rdata
9+
*.Rproj
10+
*.rproj
11+
*.Rbuildignore
12+
*.rbuildignore
13+
.Rproj.user
14+
.rproj.user
715
*~
816
*.gexf
917
*.html
1018
*.dll
1119
*.rds
1220
*.o
1321

14-
*.(R|r)html
22+
*.Rhtml
23+
*.rhtml
1524
*.pdf
16-
.Rproj.user
1725
inst/doc
1826
docs/
1927

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ Imports:
2121
igraph,
2222
grDevices,
2323
utils,
24-
servr
24+
servr,
25+
htmlwidgets
2526
License: MIT + file LICENSE
2627
LazyLoad: yes
2728
RoxygenNote: 7.3.1

NAMESPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export(gexf.to.igraph)
1616
export(gexf_js_config)
1717
export(gexfjs)
1818
export(gexfjsOutput)
19-
export(gexfjsSigma)
19+
export(renderGexfjs)
2020
export(igraph.to.gexf)
2121
export(new.gexf.graph)
2222
export(read.gexf)

R/plot.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,12 @@ gexfjs <- function(
257257

258258
#' @export
259259
gexfjsOutput <- function(outputId, width = "100%", height = "400px") {
260-
shinyWidgetOutput(outputId, "gexfjs", width, height, package = "rgexf")
260+
htmlwidgets::shinyWidgetOutput(outputId, "gexfjs", width, height, package = "rgexf")
261261
}
262262
#' @export
263-
gexfjsSigma <- function(expr, env = parent.frame(), quoted = FALSE) {
263+
renderGexfjs <- function(expr, env = parent.frame(), quoted = FALSE) {
264264
if (!quoted) { expr <- substitute(expr) } # force quoted
265-
shinyRenderWidget(expr, sigmaOutput, env, quoted = TRUE)
265+
htmlwidgets::shinyRenderWidget(expr, gexfjsOutput, env, quoted = TRUE)
266266
}
267267

268268
#' @import htmlwidgets
@@ -292,10 +292,10 @@ test1 <- function(width=NULL, height=NULL) {
292292

293293
#' @export
294294
test1Output <- function(outputId, width = "100%", height = "400px") {
295-
shinyWidgetOutput(outputId, "test1", width, height, package = "rgexf")
295+
htmlwidgets::shinyWidgetOutput(outputId, "test1", width, height, package = "rgexf")
296296
}
297297
#' @export
298298
renderTest1 <- function(expr, env = parent.frame(), quoted = FALSE) {
299299
if (!quoted) { expr <- substitute(expr) } # force quoted
300-
shinyRenderWidget(expr, test1Output, env, quoted = TRUE)
300+
htmlwidgets::shinyRenderWidget(expr, test1Output, env, quoted = TRUE)
301301
}

0 commit comments

Comments
 (0)