swig/Lib/r
William S Fulton 973590ff91 R rtypecheck typemaps
Further switch to use rtypecheck typemaps instead of hard coded logic.
The full switch to typemaps is deferred until swig-4.2 as it can't be fully
backwards compatible. For now a warning is provided to help the
transition. It provides the full typemap that should be placed into
a user's interface file, for example:

%typemap("rtype") int32_t * "integer"
void testmethod(int32_t * i);
void testmethod();

If there is no rtypecheck typemap for int32_t *, the warning shown is:

example.i:7: Warning 750: Optional rtypecheck code is deprecated. Add the
following typemap to fix as the next version of SWIG will not work without it:
%typemap("rtypecheck") int32_t * %{ (is.integer($arg) || is.numeric($arg)) %}

The warning is shown for any code that previously used "numeric", "integer" or
"character" for the rtype typemap. Copying the rtypecheck typemap as
shown into the user interface file will provide the appropriate fix and
the warning will disappear. This is important to do as swig-4.2 will
not be able to provide this helpful warning.
2022-11-05 08:40:26 +00:00
..
boost_shared_ptr.i Overloading fixes for R and rtypecheck typemap 2022-11-05 08:40:26 +00:00
cdata.i Committing R-SWIG 2006-06-29 03:01:18 +00:00
exception.i Committing R-SWIG 2006-06-29 03:01:18 +00:00
r.swg Correct new Raise functions to be static 2022-10-14 22:51:26 +01:00
rcontainer.swg check in R-swig changes that implement vector conversions to and 2012-03-29 16:32:51 +00:00
rfragments.swg Fix R memory leak on exception 2020-01-30 20:43:39 +00:00
rkw.swg Renames performed by %namewarn with rename= are printed in warning message 2022-02-06 13:51:37 -05:00
ropers.swg Remove illegal operator overload names in R 2016-12-22 19:59:58 +00:00
rrun.swg Fix memory leak in R shared_ptr wrappers 2022-11-05 08:32:05 +00:00
rstdcommon.swg as() no longer uses memset and always throws. 2017-07-20 13:07:59 -06:00
rtype.swg R rtypecheck typemaps 2022-11-05 08:40:26 +00:00
srun.swg Setting enum values with calls to the C code. 2019-03-08 21:56:36 +11:00
std_alloc.i Committing R-SWIG 2006-06-29 03:01:18 +00:00
std_common.i Fix STL wrappers to not generate <: digraphs. 2015-12-12 14:05:46 +00:00
std_container.i Committing R-SWIG 2006-06-29 03:01:18 +00:00
std_deque.i Committing R-SWIG 2006-06-29 03:01:18 +00:00
std_except.i Committing R-SWIG 2006-06-29 03:01:18 +00:00
std_list.i add list to R backend 2012-03-18 09:33:53 +00:00
std_map.i add std_map 2009-11-10 02:32:29 +00:00
std_pair.i add std_map 2009-11-10 02:32:29 +00:00
std_shared_ptr.i Add std_shared_ptr.i for Scilab and R as boost_shared_ptr.i is already available 2018-03-09 06:58:08 +00:00
std_string.i Committing R-SWIG 2006-06-29 03:01:18 +00:00
std_vector.i Fix memory leak in R shared_ptr wrappers 2022-11-05 08:32:05 +00:00
stl.i Create a consistent stl.i library file 2019-02-12 18:46:05 +00:00
swigmove.i Provide SWIGTYPE MOVE typemaps in swigmove.i 2022-09-16 08:36:25 +01:00
typemaps.i Committing R-SWIG 2006-06-29 03:01:18 +00:00