Skip to content
Back to formatted view

Raw Message

Message-ID: <4DA5BFFD.6090608@tu-dresden.de>
Date: 2011-04-13T15:23:41Z
From: Thomas Petzoldt
Subject: [R-sig-dyn-mod] Using spline_coef and spline_eval in C code
In-Reply-To: <1302705063.19241.118.camel@dkubuntu-laptop>

On 13.04.2011 16:31, Daniel Kaschek wrote:
> Dear mailing list members,
>
> I want to use spline_coef and spline_eval (from the stats library)
> directly in my C code. The problem is that these functions are not
> listed in any of the header files in /usr/share/R/include.
>
> What do I need to make them available?

Hi Daniel,

the spline code can be found in file splines.c of package 'stats':

https://svn.r-project.org/R/trunk/src/library/stats/src

The file has about 7kbytes size, so the most pragmatic way is to put a 
copy into your own source directory. This is legal as long as your 
derived work will be redistributed under the GPL, too.

Thomas

-- 
Thomas Petzoldt

Technische Universitaet Dresden
Faculty of Forest, Geo and Hydro Sciences
Institute of Hydrobiology
01062 Dresden, Germany

E-Mail: thomas.petzoldt at tu-dresden.de
http://tu-dresden.de/Members/thomas.petzoldt