Re: [Rd] How to (appropropriately) use require in a package?
I am not an expert here, but if it's a package, couldn't (shouldn't?) you include Package B in one of the Depends: or Imports: lines in the DESCRIPTION file? That would ensure Package B is automatically made accessible whenever Package A is loaded. For example, see the Writing R Extensions manual: http://cran.fhcrc.org/doc/manuals/r-release/R-exts.html#Package-Dependencies Chris Green Ph.D. Student, Statistics University of Washington, Seattle On Thu, Aug 7, 2014 at 4:35 PM, Joshua Wiley wrote: > Dear All, > > What is the preferred way for Package A, to initialize a cluster, and load > Package B on all nodes? > > I am writing a package that parallelizes some functions through the use of > a cluster if useRs are on a Windows machine (using parLapply and family). > I also make use of another package in some of my code, so it is necessary > to load the required packages on each slave once the cluster is started. > > Right now, I have done this, by evaluating require(packages) on each slave; > however, Rcmd check has a note that I should remove the "require" in my > code. > > Thanks! > > Josh > > -- > Joshua F. Wiley > Ph.D. Student, UCLA Department of Psychology > http://joshuawiley.com/ > Senior Analyst, Elkhart Group Ltd. > http://elkhartgroup.com > Office: 260.673.5518 > > [[alternative HTML version deleted]] > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Licensing concerns in porting S-Plus code to R libraries
I used S-Plus for many years, and developed lots of code for my research. When I switched to R a few years ago, I ported most of my S-Plus code over to R for my own use. Now that some of this code is quite polished, I would like to make it available as an R package on CRAN. Some of my S-Plus code, however, was based on Insightful S-Plus functions; for instance, I took a Trellis function, and modified to suit my needs. In some cases the modifications are minor (e.g., adding extra functionality, changing colors), while in other cases I've made substantial changes (e.g., a new function that just uses the techniques of the internal function). Furthermore, in porting the code to R, I of course had to make further changes (e.g., Trellis functions for lattice/grid functions, new C code to replace internal S-Plus routines to which I did not have the source code). I wondering if anyone can provide some guidance here as to what I can release without running afoul of any user agreement that may have come with S-Plus long ago. I'm assuming other package developers, especially those that were S-Plus users long ago, have encountered this issue and can advise me on what to do. Many thanks, Chris Green [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel