Skip to content

Commit 1ec00a2

Browse files
authored
Merge pull request #4 from bedapub/devel
Upating ribiosGraph to make it ready for CRAN submission
2 parents 90b72e3 + 3814a30 commit 1ec00a2

7 files changed

Lines changed: 28 additions & 23 deletions

File tree

.github/workflows/standard-ci-workflow.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ jobs:
4040
r-version: ${{ matrix.config.r }}
4141
use-public-rspm: true
4242

43+
- name: Install macOS system dependencies
44+
if: runner.os == 'macOS'
45+
run: |
46+
brew install gettext
47+
mkdir -p ~/.R
48+
echo "CPPFLAGS += -I$(brew --prefix gettext)/include" >> ~/.R/Makevars
49+
echo "LDFLAGS += -L$(brew --prefix gettext)/lib" >> ~/.R/Makevars
50+
4351
- uses: r-lib/actions/setup-r-dependencies@v2
4452
with:
4553
extra-packages: any::rcmdcheck

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
*.so
33
*.o
44
*.pdf
5-
*.Rhistory
5+
*.Rhistory*.tar.gz
6+
*.tar.gz

DESCRIPTION

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
Package: ribiosGraph
22
Type: Package
3-
Title: Manipulate and Visualize Graphs in the Ribios Software Suite
3+
Title: Manipulate and Visualize Graphs in the 'ribios' Software Suite
44
Version: 1.1.0
55
Date: 2026-01-24
66
Authors@R:
77
c(person(given = "Jitao David",
88
family = "Zhang",
99
role = c("aut", "cre"),
1010
email = "jitao_david.zhang@roche.com",
11-
comment = c(ORCID="0000-0002-3085-0909")),
12-
person("F.Hoffmann-La Roche AG", role="cph"))
13-
Description: Tools to manipulate and visualize graphs (networks) for
14-
computational biology in drug discovery. Provides functions for creating
15-
bipartite graphs and interactive visualizations using plotly.
11+
comment = c(ORCID="0000-0002-3085-0909")))
12+
Description: The package implements tools to manipulate and visualize graphs (networks) for computational biology in drug discovery, for instance functions for creating bipartite graphs and for interactive visualizations. Zhang (2025) <https://github.com/bedapub/ribiosGraph>.
1613
Depends:
1714
R (>= 3.4.0),
1815
igraph

R/exportGML.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ fixNodeLabel <- function(name) {
1010
#'
1111
#' @param igraph An \code{igraph} object
1212
#' @param filename Filename
13-
#'
13+
#' @return Invisible NULL
14+
#' @description
1415
#' \code{exportGML} exports an \code{igraph} object to GML files
1516
#' complying with specifications defined by Cytoscape and yEd. Compared
1617
#' to the native \code{write.graph} function provided by the
@@ -86,4 +87,5 @@ exportGML <- function(igraph, filename) {
8687
}
8788
cat("]\n", file=file)
8889
close(file)
90+
return(invisible(NULL))
8991
}

R/incidence2bipartite.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
#' in rows and in columns
77
#' @param label.color A vector of length 2, color of labels of nodes
88
#' in rows and in columns
9-
#' @param V A named list of other node styles, each item of length 1 or 2.
10-
#' In the latter case, the first value is used for nodes in rows and the
11-
#' second for nodes in columns
9+
#' @param V A named list of other node styles, each item of length 1 or 2. In the latter case, the first value is used for nodes in rows and the second for nodes in columns
1210
#' @param E A named list of edge styles. Each item must be length of 1.
13-
#' @return A graph
11+
#' @return An instance of \code{igraph} graph
1412
#' @importFrom igraph graph_from_incidence_matrix V E `V<-` `E<-`
1513
#' @examples
1614
#' myIncMat <- matrix(c(0, 0, 1,

man/exportGML.Rd

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/incidence2bipartite.Rd

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)