[R] R] Re: Mandelbrot set and C code --

Liaw, Andy andy_liaw at merck.com
Thu Oct 2 19:01:20 CEST 2003


You need to install the tools needed to build packages from source.  You can
read about it in Q3.1 of R for Windows FAQ.

Andy

> -----Original Message-----
> From: Rex Bryan Dell1700 [mailto:rexbryan1 at comcast.net] 
> Sent: Thursday, October 02, 2003 12:15 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] R] Re: Mandelbrot set and C code --
> 
> 
> Wizards...
> 
> With regards to Mario's Mandelbrot.c programming -- would
> some kind wizard show how to compile and run his code on
> a Win installation.  I'm looking for a simple "cookbook" 
> example in the same manner that Mario show for Linux. I have 
> Win2000 on this machine.
> 
> REX
> --------------- Original Message ---------------------
> 
> Date: Wed, 01 Oct 2003 14:09:36 +0100
> From: ucgamdo at ucl.ac.uk
> Subject: [R] Re: Mandelbrot set and C code
> To: Martin Maechler <maechler at stat.math.ethz.ch>
> Cc: r-help at stat.math.ethz.ch
> Message-ID: <3.0.5.32.20031001140936.007e2100 at pop-server.ucl.ac.uk>
> Content-Type: text/plain; charset="us-ascii"
> -- Snip --
> To anyone interested in trying out these functions, just save 
> the C code into a file, say 'mandelbrot.c', to be able to use 
> the C code with R a shared object needs to be created. This 
> is done simple running the following command from the 
> directory where 'mandelbrot.c' is stored (note this code was 
> tried in Linux, for Win users I think the instructions are 
> similar but you need you check it out):
> 
> R CMD SHLIB mandelbrot.c
> 
> This will create the file 'mandelbrot.so' in that same directory.
> 
> Start R from this directory and paste the above R code into 
> the console. Type
> 
> > dyn.load("mandelbrot.so")
> 
> --snip--
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list 
> https://www.stat.math.ethz.ch/mailman/listinfo> /r-help
>




More information about the R-help mailing list