[Insight-users] Wrapping R with SimpleITK
Bradley Lowekamp
blowekamp at mail.nih.gov
Sat Dec 31 13:34:29 EST 2011
Hello again,
I was not able to get the R packaging to work as described in the link provided. I did find a manual way to load the SimpleITK R library.
Copy the SimpleITK.R file and the libSimpleITK.so ( renamed to SimpleITK.so ) into your current path, such as with the following commands:
cp SimpleITK/SimpleITK-build/Wrapping/SimpleITK.R
cp SimpleITK/SimpleITK-build/Wrapping/SimpleITK.R ./
The fire up R and type:
$ R
R version 2.14.0 (2011-10-31)
...
> dyn.load( paste("SimpleITK", .Platform$dynlib.ext, sep="" ))
> source ( "SimpleITK.R" )
Creating a generic function for ‘print’ from package ‘base’ in the global environment
> cacheMetaData( 1 )
Here is an example that was working at one point:
http://www.itk.org/SimpleITKDoxygen/html/SimpleGaussian_8R-example.html
However the "library( SimpleITK )" call is used for when SimpleITK is installed as a package not the adhoc approach used above.
Good Luck,
Brad
On Dec 31, 2011, at 1:11 PM, Lowekamp, Bradley (NIH/NLM/LHC) [C] wrote:
> Hello Brandon,
>
> The particular files you looking for are in the SimpleITK source directory not the build. You will need both the DESCRIPTION and the zzz.R files from the {SIMPLEITK_SOURCE}/Wrapping/R_Package directory.
>
> We have been calling R a Tier 2 or Tier 3 language in SimpleITK because is not as well supported as the other wrapped languages such as Python, Java, CSharp or even Ruby, or TCL. The primary reason for this is that we have not gotten the automatic testing working for R, so that it will show up on the nightly dashboard. Additionally, we also are hoping for contribution from the community to get the R language specific features polished and up to the expected R standard conventions.
>
> I hope this helps you with getting SimpleITK working R,
>
> Brad
>
> ========================================================
> Bradley Lowekamp
> Medical Science and Computing for
> Office of High Performance Computing and Communications
> National Library of Medicine
> blowekamp at mail.nih.gov
>
> On Dec 31, 2011, at 9:28 AM, Brandon Whitcher wrote:
>
>> Dear ITK/SimpleITK experts,
>>
>> I have installed SimpleITK by turning off all wrapping facilities except WRAP_R. I am now following the instructions in
>>
>> http://www.itk.org/SimpleITKDoxygen/html/Wrapping.html
>>
>> Specifically,
>>
>> 6) Copy the file
>> SimpleITK/Wrapping/R_Package/DESCRIPTION
>> into the current
>>
>> SimpleITK/DESCRIPTION
>> ...but I cannot find the file Wrapping/R_package/DESCRIPTION in my SimpleITK-binary installation. Where is this file?
>>
>> thank-you,
>>
>> Brandon
>>
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20111231/dd62b3dc/attachment.htm>
More information about the Insight-users
mailing list