From ripley at stats.ox.ac.uk  Wed Jun 26 10:31:34 2013
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed, 26 Jun 2013 09:31:34 +0100
Subject: [Rd] Save R Objects in C Code
In-Reply-To: <000301ce7245$a9a92eb0$fcfb8c10$@gmail.com>
References: <000301ce7245$a9a92eb0$fcfb8c10$@gmail.com>
Message-ID: <51CAA6E6.6040303@stats.ox.ac.uk>

On 26/06/2013 09:17, Ziqiang Zhao wrote:
> Dear all,
>
>                  How do I save the R objects in C code?
>
>                  In R code, we use save(x,y,file="F.RData") to save x and y
> in "F.RData".
>
>                  But what should I do in C?

Call that R code (using eval).

If you look at the R code for save() you will see that a substantial 
amount of it is interpreted code.

>
> --------------------
>
> Ziqiang Zhao
>
> 2013-06-26
>
>
>
>
> 	[[alternative HTML version deleted]]

Please see the posting guide and what it says about HTML mail.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] Save R Objects in C Code
Prof Brian Ripley