Hi, I built a package in linux and would like to use it in windows. I cant build the package again in windows because it would miss the necessary libraries etc(I'm using Rcpp). So I need to generate a binary version and try to install it in windows. I tried this and I get the error /cygdrive/RTools/bin/cp: target 'xf->>' is not a directory Can someone help me with this? -- Rajesh.J [[alternative HTML version deleted]]
romain at r-enthusiasts.com
2010-Sep-01 15:37 UTC
[R] Using packages built in linux in windows
Hi, The proper venue for Rcpp related questions is the Rcpp-devel mailing list: http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel Of course you can build a package that uses Rcpp on windows, once all the proper tools are installed, it is just the same as building it on any other supported system : R CMD INSTALL wonderland Otherwise, you can use win-builder: http://win-builder.r-project.org/ Romain Le 01/09/10 17:05, rajesh j a ?crit :> > Hi, > > I built a package in linux and would like to use it in windows. I cant build > the package again in windows because it would miss the necessary libraries > etc(I'm using Rcpp). So I need to generate a binary version and try to > install it in windows. I tried this and I get the error > > /cygdrive/RTools/bin/cp: target 'xf->>' is not a directory > > Can someone help me with this?-- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/bzoWrs : Rcpp svn revision 2000 |- http://bit.ly/b8VNE2 : Rcpp at LondonR, oct 5th `- http://bit.ly/aAyra4 : highlight 0.2-2
Normally, a binary package built on one platform will not work on another. While it is possible to cross-compile, in most cases it is best to assemble the necessary development environment oNoten the target platform (including the appropriate libraries compiled for that platform) and build the package there. Note that Cygwin libraries are not recommended for use in R packages on Windows. See the notes on compiling for Windows linked at CRAN. "rajesh j" <akshay.rajesh at gmail.com> wrote:>Hi, > >I built a package in linux and would like to use it in windows. I cant build >the package again in windows because it would miss the necessary libraries >etc(I'm using Rcpp). So I need to generate a binary version and try to >install it in windows. I tried this and I get the error > >/cygdrive/RTools/bin/cp: target 'xf->>' is not a directory > >Can someone help me with this? > > > >-- >Rajesh.J > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.--------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity.