summaryrefslogtreecommitdiff
path: root/Lib/r
Commit message (Collapse)AuthorAgeFilesLines
* Fix #555 - Add stdio.hJoseph C Wang2016-11-121-0/+1
| | | | This corrects for compilers that need stdio.h
* Writing R extensions says:Richard Beare2016-08-051-11/+11
| | | | | | | Most R header files can be included within C++ programs but they should not be included within an extern "C" block (as they include system headers). This patch moves the Rdefines.h and Rversion.h outside the extern block.
* UTL STL container descriptor checksWilliam S Fulton2016-07-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The vector of pointers (just fixed) were not working correctly because the descriptors returned from swig::type_info() were sometimes returning zero. Zero should only be used for void * as the subsequent call to SWIG_ConvertPtr will blindly cast the pointer without checking descriptor. std::vector<void *> does not work and will require further changes: specializing traits_info<void *> to return 0 and traits_asptr<void *>. I tried this and traits_asptr<void> also needs to be added in which seems odd and requires further investigation... Lib/python/pystdcommon.swg: template <> struct traits_info<void *> { static swig_type_info *type_info() { static swig_type_info *info = 0; } }; Lib/std/std_common.i: template <> struct traits_asptr<void *> { static int asptr(PyObject *obj, void ***val) { void **p; swig_type_info *descriptor = 0; int res = SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0); if (SWIG_IsOK(res)) { if (val) *val = p; } return res; } }; // this is needed, but am not sure this is expected template <> struct traits_asptr<void> { static int asptr(PyObject *obj, void **val) { void **p; swig_type_info *descriptor = 0; int res = SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0); if (SWIG_IsOK(res)) { if (val) *val = p; } return res; } };
* Remove unused code in R wrappersWilliam S Fulton2016-06-051-4/+0
|
* cleaned up constantsRichard Beare2016-04-211-45/+52
|
* R delete an old trace statementRichard Beare2016-04-191-2/+1
|
* Missing definitions for vector referencesRichard Beare2016-04-191-27/+27
|
* run test and copying typemaps to std::stringRichard Beare2016-04-051-4/+14
|
* added R string vector to C++ std::vector of stringsRichard Beare2016-04-051-2/+36
|
* Merge pull request #633 from sbpcs59/masterjoequant2016-03-261-2/+2
|\ | | | | Suppress unmessage at package load
| * Suppress message at package load - Creating a generic function for ↵sbpcs592016-03-101-2/+2
| | | | | | | | ‘print’ from package ‘base’ in package <some package>
* | Support for more numeric types in std::vector for R.Richard Beare2016-03-151-29/+444
|/ | | | | | | | This change allows R to automatically convert std::vectors of signed and unsigned 8, 16, 32 and 64 bit integer types. rtype, rtypecheck, scoercein and scoerceout typemaps are copied across integer types.
* Don't use long long if it isn't availableAlec Cooper2016-01-061-4/+16
| | | | | Adds preprocessor checks to avoid defining functions that use long long if it isn't available Effects the following languages: javascript, octave, perl, python, r, ruby, tcl
* Fix STL wrappers to not generate <: digraphs.William S Fulton2015-12-121-8/+8
| | | | | For example std::vector<::X::Y> was sometimes generated, now corrected to std::vector< ::X::Y >.
* shared_ptr typemap error message fix for global variablesWilliam S Fulton2015-09-251-2/+4
| | | | | $argnum was not being expanded in the generated code Correct to use the error message from the standard typemaps
* suppress warning for ExternalReference printJoseph C Wang2015-07-041-2/+2
|
* R - fix duplicate generation of 'self' parameter.William S Fulton2015-06-121-0/+4
| | | | Fixes director_keywords test case.
* R - Call to SWIG_createNewRef in copyToC was incorrectly named.William S Fulton2015-06-121-2/+2
| | | | Closes #430
* Fix R Lib files and testcase failing due to new preprocessor checksWilliam S Fulton2014-10-292-24/+12
| | | | | | | Fixes unknown preprocessor directive error introduced in #217 commit 255c929c5636f54c16261bd92b8eea2005d61b11 These were probably intended as script comments using # when C/C++ comments using // or /* */ should have been used.
* Fix Visual Studio compile error in C++ wrappers due to #include <exception> ↵William S Fulton2013-10-171-1/+1
| | | | | | within extern "C" block. Fixes SF #1340
* Merge branch 'master' into gsoc2009-matevzWilliam S Fulton2013-10-102-1/+10
|\ | | | | | | | | | | | | | | | | | | Conflicts: Examples/Makefile.in Examples/guile/Makefile.in Lib/php/php.swg Makefile.in Source/CParse/parser.y configure.ac
| * Guile OUTPUT typemap fixWilliam S Fulton2013-09-151-1/+8
| | | | | | | | Fixes 'attempt to free a non-heap object' in some OUTPUT typemaps.
| * change to allow file SEXP return valuesjoequant2013-07-141-0/+2
| |
* | Merge branch 'master' into gsoc2009-matevzWilliam S Fulton2013-01-2811-62/+1177
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | parser.y still to be fixed up Conflicts: Doc/Devel/engineering.html Examples/Makefile.in Lib/allegrocl/allegrocl.swg Lib/csharp/csharp.swg Lib/csharp/enums.swg Lib/csharp/enumsimple.swg Lib/csharp/enumtypesafe.swg Lib/java/java.swg Lib/python/pydocs.swg Lib/r/rtype.swg Source/Include/swigwarn.h Source/Modules/octave.cxx Source/Modules/python.cxx Source/Modules/ruby.cxx Source/Swig/scanner.c Source/Swig/stype.c Source/Swig/swig.h configure.ac
| * add boost_shared_ptr for Rjoequant2013-01-072-0/+314
| |
| * r changes to handle external pointersjoequant2013-01-062-9/+12
| |
| * Fix for gcc warning -Wunused-value without triggering -Wunused-parameterWilliam S Fulton2012-09-071-1/+1
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13735 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * make ExternalReference slot ref to contain referenceJoseph Wang2012-08-261-42/+120
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13721 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Revert r13601 as it breaks older versions of RWilliam S Fulton2012-08-201-30/+16
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13713 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * change R components so that pointers are visible through refJoseph Wang2012-08-121-16/+30
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13601 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * add pair to stl.iJoseph Wang2012-08-081-0/+2
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13562 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Move contributor names to where they belongWilliam S Fulton2012-06-111-1/+0
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13160 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * add std_vector items`Joseph Wang2012-06-101-89/+427
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13159 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * remove spurtious printfJoseph Wang2012-04-151-1/+0
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12989 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Add back in %traits_enum removed in rev 12961 and probably fix iterating ↵William S Fulton2012-04-141-4/+42
| | | | | | | | | | | | through std::vector wrappers of enumerations for R git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12988 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * check in R-swig changes that implement vector conversions to and Joseph Wang2012-03-293-5/+293
| | | | | | | | | | | | | | from std::vector git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Fix comment typoOlly Betts2012-03-271-1/+1
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * fix typo in int definitionJoseph Wang2012-03-251-2/+3
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12951 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * don't free if the pointer is marked as outputJoseph Wang2012-03-251-2/+11
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12950 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Remove trailing semicolon from do { ... } while(0) idiomOlly Betts2012-03-241-2/+2
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * change to make funcptr.ctest workJoseph Wang2012-03-231-0/+2
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12947 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * fix typos and add more typecheckJoseph Wang2012-03-211-1/+7
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12943 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Fix missing stddef.h when %import of STL containers. Was causing compile ↵William S Fulton2012-03-201-1/+1
| | | | | | | | | | | | failures witht g++-4.6. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12939 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * use type checks to order r outputsJoseph Wang2012-03-182-2/+38
| | | | | | | | | | | | | | add noreturn exception handler git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12935 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * add list to R backendJoseph Wang2012-03-181-0/+5
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12934 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Fix #3475492 - iterating through std::vector wrappers of enumerations.William S Fulton2012-03-131-0/+4
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * R tidy up removing C++ commentsWilliam S Fulton2011-11-302-13/+6
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12853 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Apply patch #3239076 from Marie White fixing strings for R >= 2.7.0William S Fulton2011-03-291-3/+3
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12565 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* | Add rvalue reference typemapsWilliam S Fulton2013-01-241-1/+14
|/
* change call for R to use mkCharLen where it exists (R versions >=Joseph Wang2010-05-091-0/+11
| | | | | | | | | 2.7.0). This is necessary because later versions of R (>= 2.8.0) depreciate creation of strings through vectors because this does not allow R to use character caches git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12014 626c5289-ae23-0410-ae9c-e8d60b6d4f22