Comments (3)
Hey Karl,
Seems like some header is not imported in the mqm code, which is imported in the normal R/qtl C code base, since in:
hmm_main.c at line 1014 the function error() is called without any issues of not being defined
discan.c at line at line 249 the function warning() is called without any issues of not being defined
My guess is that it's due to those files being C files, while the mqm files are C++
As far as I can see, the fix would be to:
#include <R_ext/Error.h>
which exports the error() and warning() macros. This is kind of strange, since importing R.h should lead to the R_ext/Error.h being imported (and the MQM code does import R.h)
from qtl.
It's maybe related to the following from the R-exts manual:
Most of these header files, including all those included by R.h, can be used from C++ code.
Note: Because R re-maps many of its external names to avoid clashes with system or user code, it is essential to include the appropriate header files when using these entry points.
This remapping can cause problems, and can be eliminated by defining R_NO_REMAP (before including any R headers) and prepending ‘Rf_’ to all the function names used from Rinternals.h and R_ext/Error.h. These problems can usually be avoided by including other headers (such as system headers and those for external software used by the package) before any R headers.
from qtl.
To reproduce the problem, it seems like, from the NEWS for R-devel, that we want to set an environment variable _R_CXX_USE_NO_REMAP_
to true. This will compile C++ code with -DR_NO_REMAP
.
from qtl.
Related Issues (20)
- scanone perms with 4-way cross giving all 0's HOT 3
- Change read.cross warning about length of arg alleles
- pull.rf gives error with duplicate marker names
- GH Action check failing on MacOS HOT 2
- stepwiseqtl has problems with X chr and sex covariate HOT 1
- Problem in scantwo permutations HOT 1
- addcovar arg for cim()
- addtoqtl should clear attributes HOT 1
- Error: "long vectors (argument 5) are not supported in .C" HOT 2
- switch.alleles should give error with results of markerlrt HOT 1
- reduce2grid error HOT 2
- locationXO and countXO for BCsFt
- addint bug when X chr QTL and missing phenotypes HOT 2
- summary.scanone error with threshold as a vector
- Improper header in pheno dataframe with single column pheno file HOT 3
- Warning on CRAN
- Additional warnings on CRAN
- Error handling of pheno.col in cim()
- Calloc/Realloc can no longer be used? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtl.