Re: [Rd] R CMD check warning with S3 method

2014-06-27 Thread Yihui Xie
Hi Duncan, Again, thanks a lot for making this change (help requests are tried over all loaded instead of attached packages): https://github.com/wch/r-source/commit/21d2f7430b4 This makes what I proposed last time possible now: if pkg B imports FUN from A and re-exports it, ?FUN will work after B

Re: [Rd] user defined macros in Rd files

2014-06-27 Thread Yihui Xie
Hi Duncan, Thanks a lot for eventually implementing this and making the Rd world greener! https://github.com/wch/r-source/commit/ff3ea81ae87 Regards, Yihui -- Yihui Xie Web: http://yihui.name On Wed, Oct 9, 2013 at 3:55 PM, Duncan Murdoch wrote: > On 13-10-09 4:34 PM, Yihui Xie wrote: >> >> +

Re: [Rd] Listing Packages in Depends or Imports

2014-06-27 Thread Dario Strbenac
Hello, What I meant was that the second rule implies that Depends packages should be in the NAMESPACE file, but the first rule implies that packages in the NAMESPACE file should not be in the Depends field, but Imports field. It would be a logical contradiction if it wasn't preceded by "almost

Re: [Rd] Need help on calling Head from C

2014-06-27 Thread Radford Neal
> >> SEXP mkans(double x) > >> { > >> SEXP ans; > >> ans = PROTECT(allocVector(REALSXP, 1)); > >> REAL(ans)[0] = x; > >> UNPROTECT(1); > >> return ans; > >> } > >One should also note that the PROTECT within mkans is unnecessary, > >and must surely be confusing to anyone w

Re: [Rd] using 2D array of SEXP for creating dataframe

2014-06-27 Thread Sandip Nandi
Thanks a lot . Appreciate your time . I am sorry for missing snippets of the code , trying to copy back and forth . My bad .sorry for that . The dataframe df is to be of VECSXP . PROTECT(df = allocVector(VECSXP,2)); What I am trying to do ? Lets say you read a huge table , with each column is d

Re: [Rd] Need help on calling Head from C

2014-06-27 Thread Hervé Pagès
On 06/27/2014 02:23 AM, Radford Neal wrote: The code is actually not safe. Both "install" and "SalarLogical/Integer" potentially allocate memory, so at least one needs to be protected before callling lang3. (Passing one such argument would be OK, since lang3 protects its arguments, but it doesn

[Rd] R CMD SHLIB failure (Win7 64-bit OS)

2014-06-27 Thread Luke Hartigan
Dear all, I am struggling to get the 'Rtools' tool chain to successfully build .dlls using the "R CMD SHLIB" method on my home Win7 64-bit (Ultimate) PC. Strangely I did get it working on my work PC (also Win7 64-bit but Enterprise) so I am totally at a loss as to what to do. When I type, "R CMD

[Rd] blas test problem

2014-06-27 Thread lejeczek
dear developers I myself am not a prog-devel, I found this http://devgurus.amd.com/message/1255852#1255852 Most R compilations/installations I use seem to fail this test, is this a problem and if yes then how serious is it? regards __ R-devel@r-pr

Re: [Rd] Listing Packages in Depends or Imports

2014-06-27 Thread Uwe Ligges
On 27.06.2014 04:00, Dario Strbenac wrote: Hello, The Writing R Extensions manual gives confusing advice. Compare Packages listed in imports or importFrom directives in the NAMESPACE file should almost always be in ‘Imports’ and not ‘Depends’. with Almost always packages mentioned in ‘Depe

Re: [Rd] Need help on calling Head from C

2014-06-27 Thread Radford Neal
> >The code is actually not safe. Both "install" and "SalarLogical/Integer" > >potentially allocate memory, so at least one needs to be protected before > >callling lang3. (Passing one such argument would be OK, since lang3 > >protects its arguments, but it doesn't get a chance to do that while t

Re: [Rd] Listing Packages in Depends or Imports

2014-06-27 Thread Barry Rowlingson
On Fri, Jun 27, 2014 at 3:00 AM, Dario Strbenac wrote: > Hello, > > The Writing R Extensions manual gives confusing advice. Compare > > Packages listed in imports or importFrom directives in the NAMESPACE file > should almost always be in ‘Imports’ and not ‘Depends’. > > with > > Almost always pa