Skip to content

Commit

Permalink
Fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Jun 27, 2024
1 parent bb9ad15 commit 6d51fa2
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 641 deletions.
2 changes: 1 addition & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ demo/gexfplot\.R
^\.travis\.yml$
^appveyor\.yml$
^codecov\.yml$
^README\.Rmd$
^README\.qmd$
^dependencies$
^Makefile$
^LICENSE\.md$
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@
.Rproj.user
inst/doc
docs/

/.quarto/
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Authors@R: c(
person("Cornelius", "Fritz", role = "rev", comment = c(what = "JOSS reviewer")),
person("Jonathan", "Cardoso Silva", role = "rev", comment = c(what = "JOSS reviewer"))
)
Description: Create, read, and write 'GEXF' (Graph Exchange 'XML' Format) graph files (used in 'Gephi' and others). Using the 'XML' package, rgexf allows easily build and read graph files, including attributes, 'GEXF' visual attributes (such as color, size, and position), network dynamics (for both edges and nodes), and edges' weights. Users can build/handle graphs element-by-element or massively through data frames, visualize the graph on a web browser through 'gexf-js' (a 'javascript' library), and interact with the 'igraph' package.
Description: Create, read, and write 'GEXF' (Graph Exchange 'XML' Format) graph files (used in 'Gephi' and others). Using the 'XML' package, rgexf allows reading and writing GEXF files, including attributes, 'GEXF' visual attributes (such as color, size, and position), network dynamics (for both edges and nodes), and edges' weights. Users can build/handle graphs element-by-element or massively through data frames, visualize the graph on a web browser through 'gexf-js' (a 'javascript' library), and interact with the 'igraph' package.
URL: https://gvegayon.github.io/rgexf/
BugReports: https://github.com/gvegayon/rgexf/issues
Imports:
Expand All @@ -25,7 +25,7 @@ Imports:
servr
License: MIT + file LICENSE
LazyLoad: yes
RoxygenNote: 7.1.1
RoxygenNote: 7.3.1
Suggests: knitr,
rmarkdown,
tinytest,
Expand Down
4 changes: 2 additions & 2 deletions R/gexf.R
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ gexf <- function(

for (i in colnames(edges)) {

if (class(edges[[i]]) == "factor")
if (inherits(edges[[i]], "factor"))
edges[[i]] <- as.numeric(edges[[i]])

}
Expand All @@ -613,7 +613,7 @@ gexf <- function(

for (i in colnames(edges)) {

if (class(edges[[i]]) == "factor")
if (inherits(edges[[i]], "factor"))
edges[[i]] <- as.character(edges[[i]])

}
Expand Down
3 changes: 1 addition & 2 deletions R/rgexf-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ NULL
#'
#' @name rgexf-package
#' @aliases rgexf-package rgexf gephi
#' @docType package
#' @note See the GEXF primer for details on the GEXF graph format:
#' \url{https://gephi.org/gexf/1.2draft/gexf-12draft-primer.pdf}
#' @references \itemize{ \item rgexf project site:
Expand All @@ -165,7 +164,7 @@ NULL
#' demo(gexfrandom) # A nice routine creating a good looking graph
#' }
#'
NULL
"_PACKAGE"



Expand Down
Loading

0 comments on commit 6d51fa2

Please sign in to comment.