No subject


Sun Feb 21 22:45:25 CET 2010


d
R CMD INSTALL a source package and it would compile+install for you.


Also, in all the tar files you have, very few have README or INSTALL files,
which could have been helpful with the above information.


Thanks again for your quick response and help get me going.   I already hav=
e
RInside working in my code to generate specific plots of my datasets.
~Dan

On Tue, Apr 6, 2010 at 10:45 AM, Romain Francois
<romain at r-enthusiasts.com>wrote:

> Le 06/04/10 18:02, Dirk Eddelbuettel a =E9crit :
>
>
>> On 6 April 2010 at 09:47, Dan Kulp wrote:
>> | Success!   The snag was installing both packages from their source
>> packages,
>> | not the binary OSX ones.
>>
>> Fiddlesticks! I once knew that, but forgot, and it doesn't hit Romain on
>> OS X
>> as he builds from source anyway.
>>
>
> I'd guess that the RInside binary was built against Rcpp 0.7.10 which has
> some binary incompatibilities with Rcpp 0.7.11, or the other way around
> ..?.?
>
> (Rcpp::Named as been promoted from a class to a function so that might be
> it. The interface has been retained, so I think this is why compiling bot=
h
> from source works. )
>
> We try out best not to introduce binary incompatibilities like this one,
> but it is not an easy task to track them. thanks for reporting this.
>
> I know that on windows, if package B that depends on package A and A is
> resubmitted, Uwe rebuilds both A and B for the windows binaries, not sure
> this also is the case for OSX binaries. (Beyond C incompatibilities other
> things can break such as S4 classes, etc ...)
>
>
>  | I appreciate your guys time, too bad installation from CRAN didn't "ju=
st
>> | work".  For me there is a lot of potential for this library.  I use R
>> for
>>
>> Maybe "using source from CRAN" -- how/where do I document that better?
>> Where
>> would you have looked?
>>
>
> Maybe we can couple more tightly, e.g have RInside depend on Rcpp (>=3D
> 0.7.11). Dunno.
>
> Not sure this would have happened with dynamic linking, but this might be
> completely unrelated.
>
>
>  | all my data analysis, but I have a set of c++ libraries used for
>> generating
>> | the data (my application is protein design), it would be great to fuse
>> the
>> | two.
>>
>> Yup. And given how feature-complete Rcpp has gotten it is quite a joy to
>> use too.
>>
>> | One question, does RInside allow you to load installed packages (
>> | library("RSvgDevice") ) ?
>>
>> "Should". See the other examples which load libraries.  Devices have the=
ir
>> own pecularities so I don't know off-hand about this for SVG generation.
>> In
>> principle it should and if it doesn't in practice we can now count on yo=
u
>> to
>> debug it ;-)
>>
>> Good it works now.
>>
>> Dirk
>>
>
> Same analysis, it should work.
>
> --
> Romain Francois
> Professional R Enthusiast
> +33(0) 6 28 91 30 30
> http://romainfrancois.blog.free.fr
> |- http://bit.ly/9aKDM9 : embed images in Rd documents
> |- http://tr.im/OIXN : raster images and RImageJ
> |- http://tr.im/OcQe : Rcpp 0.7.7
>
>


--=20
Dan Kulp, PhD
Postdoctoral Fellow
Biosciences Division, B-9
Los Alamos National Laboratory
Los Alamos,NM 87545

--0003255554f68deeb1048394c7d3
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<meta charset=3D"utf-8"><blockquote class=3D"webkit-indent-blockquote" styl=
e=3D"margin: 0 0 0 40px; border: none; padding: 0px;"><span class=3D"Apple-=
style-span" style=3D"font-family: arial, sans-serif; font-size: 13px; borde=
r-collapse: collapse; "><div class=3D"im" style=3D"color: rgb(80, 0, 80); "=
>
<span class=3D"Apple-style-span" style=3D"color: rgb(0, 0, 0); ">Maybe &quo=
t;using source from CRAN&quot; -- how/where do I document that better? Wher=
e</span></div></span><span class=3D"Apple-style-span" style=3D"font-family:=
 arial, sans-serif; font-size: 13px; border-collapse: collapse; ">would you=
 have looked?</span></blockquote>
<br><div>=A0IMHO =A0<a href=3D"http://dirk.eddelbuettel.com/code/rcpp.html"=
>http://dirk.eddelbuettel.com/code/rcpp.html</a>=A0should have an installat=
ion section, where you explicitly state the multiple ways in which you can =
install:</div>
<div>1. install.packages(&quot;Rcpp&quot;)</div><div><br></div><div>2. &quo=
t;R CMD INSTALL ....&quot;=A0</div><div><br></div><div>3. To install from b=
inary tgz you should bla,bla..</div><div><br></div><div>My confusion:</div>
<div>From 1, usually =A0install.package(PKG) I&#39;ve used for installing a=
 package like RSvgDevice, where I would be calling it from R. =A0In this ca=
se I was expecting to install some header/source files that I could build a=
nd link against.</div>
<div><br></div><div>From 2, I don&#39;t use a lot of R command-line so I wa=
sn&#39;t aware that you could R CMD INSTALL a source package and it would c=
ompile+install for you.</div><div><br></div><div><br></div><div>Also, in al=
l the tar files you have, very few have README or INSTALL files, which coul=
d have been helpful with the above information.</div>
<div><br></div><div><br></div><div>Thanks again for your quick response and=
 help get me going. =A0 I already have RInside working in my code to genera=
te specific plots of my datasets.</div><div>~Dan =A0</div><meta charset=3D"=
utf-8"><div>
<br><div class=3D"gmail_quote">On Tue, Apr 6, 2010 at 10:45 AM, Romain Fran=
cois <span dir=3D"ltr">&lt;<a href=3D"mailto:romain at r-enthusiasts.com">roma=
in at r-enthusiasts.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
;">
Le 06/04/10 18:02, Dirk Eddelbuettel a =E9crit :<div class=3D"im"><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<br>
On 6 April 2010 at 09:47, Dan Kulp wrote:<br>
| Success! =A0 The snag was installing both packages from their source pack=
ages,<br>
| not the binary OSX ones.<br>
<br>
Fiddlesticks! I once knew that, but forgot, and it doesn&#39;t hit Romain o=
n OS X<br>
as he builds from source anyway.<br>
</blockquote>
<br></div>
I&#39;d guess that the RInside binary was built against Rcpp 0.7.10 which h=
as some binary incompatibilities with Rcpp 0.7.11, or the other way around =
..?.?<br>
<br>
(Rcpp::Named as been promoted from a class to a function so that might be i=
t. The interface has been retained, so I think this is why compiling both f=
rom source works. )<br>
<br>
We try out best not to introduce binary incompatibilities like this one, bu=
t it is not an easy task to track them. thanks for reporting this.<br>
<br>
I know that on windows, if package B that depends on package A and A is res=
ubmitted, Uwe rebuilds both A and B for the windows binaries, not sure this=
 also is the case for OSX binaries. (Beyond C incompatibilities other thing=
s can break such as S4 classes, etc ...)<div class=3D"im">
<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
| I appreciate your guys time, too bad installation from CRAN didn&#39;t &q=
uot;just<br>
| work&quot;. =A0For me there is a lot of potential for this library. =A0I =
use R for<br>
<br>
Maybe &quot;using source from CRAN&quot; -- how/where do I document that be=
tter? Where<br>
would you have looked?<br>
</blockquote>
<br></div>
Maybe we can couple more tightly, e.g have RInside depend on Rcpp (&gt;=3D =
0.7.11). Dunno.<br>
<br>
Not sure this would have happened with dynamic linking, but this might be c=
ompletely unrelated.<div class=3D"im"><br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
| all my data analysis, but I have a set of c++ libraries used for generati=
ng<br>
| the data (my application is protein design), it would be great to fuse th=
e<br>
| two.<br>
<br>
Yup. And given how feature-complete Rcpp has gotten it is quite a joy to us=
e too.<br>
<br>
| One question, does RInside allow you to load installed packages (<br>
| library(&quot;RSvgDevice&quot;) ) ?<br>
<br>
&quot;Should&quot;. See the other examples which load libraries. =A0Devices=
 have their<br>
own pecularities so I don&#39;t know off-hand about this for SVG generation=
. In<br>
principle it should and if it doesn&#39;t in practice we can now count on y=
ou to<br>
debug it ;-)<br>
<br>
Good it works now.<br>
<br>
Dirk<br>
</blockquote>
<br></div>
Same analysis, it should work.<br><font color=3D"#888888">
<br>
-- <br></font><div><div></div><div class=3D"h5">
Romain Francois<br>
Professional R Enthusiast<br>
+33(0) 6 28 91 30 30<br>
<a href=3D"http://romainfrancois.blog.free.fr" target=3D"_blank">http://rom=
ainfrancois.blog.free.fr</a><br>
|- <a href=3D"http://bit.ly/9aKDM9" target=3D"_blank">http://bit.ly/9aKDM9<=
/a> : embed images in Rd documents<br>
|- <a href=3D"http://tr.im/OIXN" target=3D"_blank">http://tr.im/OIXN</a> : =
raster images and RImageJ<br>
|- <a href=3D"http://tr.im/OcQe" target=3D"_blank">http://tr.im/OcQe</a> : =
Rcpp 0.7.7<br>
<br>
</div></div></blockquote></div><br><br clear=3D"all"><br>-- <br>Dan Kulp, P=
hD<br>Postdoctoral Fellow<br>Biosciences Division, B-9<br>Los Alamos Nation=
al Laboratory<br>Los Alamos,NM 87545<br>
</div>

--0003255554f68deeb1048394c7d3--


More information about the Rcpp-devel mailing list