Skip to content

Commit

Permalink
Stimulus: support for R internal functions
Browse files Browse the repository at this point in the history
Two HSBM functions are internal
  • Loading branch information
gaborcsardi committed Jan 18, 2015
1 parent 66a3539 commit 701edd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions interfaces/functions.def
Expand Up @@ -327,6 +327,7 @@ igraph_hsbm_game:
GATTR-R: name IS Hierarchical stochastic block model GATTR-R: name IS Hierarchical stochastic block model
GATTR-PARAM-R: m, rho, C, p GATTR-PARAM-R: m, rho, C, p
IGNORE: RNamespace IGNORE: RNamespace
INTERNAL: True


igraph_hsbm_list_game: igraph_hsbm_list_game:
PARAMS: OUT GRAPH graph, INTEGER n, VECTOR_INT mlist, \ PARAMS: OUT GRAPH graph, INTEGER n, VECTOR_INT mlist, \
Expand All @@ -335,6 +336,7 @@ igraph_hsbm_list_game:
GATTR-R: name IS Hierarchical stochastic block model GATTR-R: name IS Hierarchical stochastic block model
GATTR-PARAM-R: p GATTR-PARAM-R: p
IGNORE: RNamespace IGNORE: RNamespace
INTERNAL: True


igraph_correlated_game: igraph_correlated_game:
PARAMS: GRAPH old_graph, OUT GRAPH new_graph, \ PARAMS: GRAPH old_graph, OUT GRAPH new_graph, \
Expand Down
5 changes: 4 additions & 1 deletion tools/stimulus.py
Expand Up @@ -353,7 +353,10 @@ def generate_function(self, function, out):
params[p].setdefault('mode', 'IN') params[p].setdefault('mode', 'IN')


## Roxygen to export the function ## Roxygen to export the function
out.write("#' @export\n") internal = self.func[function].get("INTERNAL")
print internal
if internal is None or internal == 'False':
out.write("#' @export\n")


## Header ## Header
## do_par handles the translation of a single argument in the ## do_par handles the translation of a single argument in the
Expand Down

0 comments on commit 701edd8

Please sign in to comment.