Skip to content

Commit

Permalink
fixes for R_NO_REMAP
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmohamed committed Nov 27, 2024
1 parent 271cd7a commit 6049d5b
Show file tree
Hide file tree
Showing 7 changed files with 165 additions and 161 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check-bioc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ jobs:
fail-fast: false
matrix:
config:
- { os: ubuntu-latest, r: 'devel', bioc: '3.20', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: ubuntu-latest, r: '4.4', bioc: '3.19', cont: "bioconductor/bioconductor_docker:RELEASE_3_19", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: '4.4', bioc: '3.19'}
- { os: windows-latest, r: '4.4', bioc: '3.19'}
- { os: ubuntu-latest, r: 'devel', bioc: '3.21', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: ubuntu-latest, r: '4.4', bioc: '3.20', cont: "bioconductor/bioconductor_docker:RELEASE_3_20", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: '4.4', bioc: '3.20'}
- { os: windows-latest, r: '4.4', bioc: '3.20'}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: NetPathMiner
Version: 1.43.0
Version: 1.43.1
Date: 2014 onwards
Title: NetPathMiner for Biological Network Construction, Path Mining
and Visualization
Expand Down
4 changes: 2 additions & 2 deletions src/handlesegfault.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
#ifndef WIN_COMPILE
#ifdef HAVE_XML
void segfault_KGML(int signal, siginfo_t *si, void *arg){
EVAL(lang2(install("registerMemoryErr"), mkString("KGML2igraph")));
EVAL(Rf_lang2(Rf_install("registerMemoryErr"), Rf_mkString("KGML2igraph")));
error("Critical memory error in KGML2igraph. Please save your work and restart R.");
}
#endif
#ifdef HAVE_SBML
void segfault_SBML(int signal, siginfo_t *si, void *arg){
EVAL(lang2(install("registerMemoryErr"), mkString("SBML2igraph")));
EVAL(Rf_lang2(Rf_install("registerMemoryErr"), Rf_mkString("SBML2igraph")));
error("Critical memory error in SBML2igraph. Please save your work and restart R.");
}
#endif
Expand Down
4 changes: 4 additions & 0 deletions src/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
using namespace std;
#endif //__cplusplus

#ifndef R_NO_REMAP
#define R_NO_REMAP
#endif

#include <R.h>
#include <Rmath.h>
#include <Rdefines.h>
Expand Down
Loading

0 comments on commit 6049d5b

Please sign in to comment.