[Rd] 'library' or 'require' call to package which was already attached by Depends

2013-09-05 Thread alexios ghalanos
Hello, I'm receiving the following NOTE during recent checks of the rmgarch package: 'library' or 'require' call to 'rugarch' which was already attached by Depends. which I traced to the recent changes in R 3.02 Utilities: • packages which are used in ‘library()’ or ‘requires()’ calls in the R

Re: [Rd] Why does duplicate() make deep copies?

2013-09-05 Thread Simon Urbanek
On Sep 5, 2013, at 12:31 AM, Peter Meilstrup wrote: > Some experimentation with the below function should convince you that the > runtime of the bit inside sys.time is proportional to size*number*times. I > think it should only be proportional to number*times. The function is only > manipulating a

Re: [Rd] libR.so: cannot open shared object file

2013-09-05 Thread gianluca.mastranto...@yahoo.it
First of all, thanks for your help. I did all the things you told me. I was able to load the library, but then Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/lustre/work/gjona2/Wrap/BayesWrap/libs/BayesWrap.so': libR.so: cannot open shared object file: No

Re: [Rd] Comments requested on "changedFiles" function

2013-09-05 Thread Duncan Murdoch
On 13-09-04 11:36 PM, Scott Kostyshak wrote: On Wed, Sep 4, 2013 at 1:53 PM, Duncan Murdoch wrote: In a number of places internal to R, we need to know which files have changed (e.g. after building a vignette). I've just written a general purpose function "changedFiles" that I'll probably comm

Re: [Rd] ASCII art in function documentation?

2013-09-05 Thread Brian G. Peterson
On 09/05/2013 09:10 AM, Rainer M Krug wrote: want to include ascii art in a function documentation which should look as follow: , | +--+--+--+ | | 1/16 | 1/16 | 1/16 | | +--+--+--+ | | 1/16 | 8/16 | 1/16 | | +--+--+--+ | | 1/16 | 1/16 | 1/16 | | +--+

Re: [Rd] ASCII art in function documentation - difference html and text output?

2013-09-05 Thread Rainer M Krug
Found a solution. putting \cr at the end of each line inserts a carriage return, but no additional empty line. So , | \code{+--+--+--+} \cr | \code{| 1/16 | 1/16 | 1/16 |} \cr | \code{+--+--+--+} \cr | \code{| 1/16 | 8/16 | 1/16 |} \cr | \code{+--+--+--+} \

Re: [Rd] ASCII art in function documentation?

2013-09-05 Thread Sarah Goslee
Now that I'm at the computer with my R code, I've used both \preformatted{} and \cr to force line breaks. Some combination of those may work for you. Sarah On Thu, Sep 5, 2013 at 11:10 AM, Rainer M Krug wrote: > Sarah Goslee writes: > >> Untested, but did you try wrapping the whole thing in a

Re: [Rd] Comments requested on "changedFiles" function

2013-09-05 Thread Duncan Murdoch
On 05/09/2013 12:32 PM, Dr Gregory Jefferis wrote: Dear Duncan, This certainly looks useful. Might you consider adding the ability to supply an alternative digest function? Details below. Thanks, that's a good idea. Duncan Murdoch I often use a homemade "make" type function which starts by

[Rd] ASCII art in function documentation?

2013-09-05 Thread Rainer M Krug
Hi I want to include ascii art in a function documentation which should look as follow: , | +--+--+--+ | | 1/16 | 1/16 | 1/16 | | +--+--+--+ | | 1/16 | 8/16 | 1/16 | | +--+--+--+ | | 1/16 | 1/16 | 1/16 | | +--+--+--+ ` to keep the monospac

Re: [Rd] ASCII art in function documentation?

2013-09-05 Thread Sarah Goslee
Untested, but did you try wrapping the whole thing in a single code block: \code{ all the things } Sarah On Thu, Sep 5, 2013 at 10:10 AM, Rainer M Krug wrote: > Hi > > I want to include ascii art in a function documentation which should > look as follow: > > , > | +--+--+--+ > |

Re: [Rd] ASCII art in function documentation?

2013-09-05 Thread Rainer M Krug
OK - it boils down to an roxygen problem. I will send a separate email for it. Thanks, Rainer Sarah Goslee writes: > Now that I'm at the computer with my R code, I've used both > \preformatted{} > and \cr to force line breaks. > > Some combination of those may work for you. > > Sarah > > > On

Re: [Rd] Comments requested on "changedFiles" function

2013-09-05 Thread Dr Gregory Jefferis
Dear Duncan, This certainly looks useful. Might you consider adding the ability to supply an alternative digest function? Details below. I often use a homemade "make" type function which starts by looking at modification times e.g. in a private package https://github.com/jefferis/nat.utils/

Re: [Rd] ASCII art in function documentation?

2013-09-05 Thread Rainer M Krug
Sarah Goslee writes: > Untested, but did you try wrapping the whole thing in a single code block: Nope - also in one line. Rainer > > \code{ > all > the > things > } > > Sarah > > On Thu, Sep 5, 2013 at 10:10 AM, Rainer M Krug wrote: >> Hi >> >> I want to include ascii art in a function docum

Re: [Rd] libR.so: cannot open shared object file

2013-09-05 Thread gianluca.mastranto...@yahoo.it
just for completion i need to use library(Model, lib.loc="user/area/myRLib") because if i use library(Model) i get this message Error in library("BayesWrap") : there is no package called 'BayesWrap' Il 05/09/13 11:59, gianluca.mastranto...@yahoo.it ha scritto: First of all, thanks for your h

Re: [Rd] Comments requested on "changedFiles" function

2013-09-05 Thread Scott Kostyshak
On Thu, Sep 5, 2013 at 6:48 AM, Duncan Murdoch wrote: > On 13-09-04 11:36 PM, Scott Kostyshak wrote: >> >> On Wed, Sep 4, 2013 at 1:53 PM, Duncan Murdoch >> wrote: >>> >>> In a number of places internal to R, we need to know which files have >>> changed (e.g. after building a vignette). I've jus

Re: [Rd] libR.so: cannot open shared object file

2013-09-05 Thread Prof Brian Ripley
On 05/09/2013 21:28, gianluca.mastranto...@yahoo.it wrote: just for completion i need to use library(Model, lib.loc="user/area/myRLib") because if i use library(Model) i get this message Error in library("BayesWrap") : there is no package called 'BayesWrap' For the record: not if you follow my

Re: [Rd] Comments requested on "changedFiles" function

2013-09-05 Thread Hadley Wickham
> This approach does have the difficulty that users could attempt to compare > snapshots that were taken with different options and that can't be > compared, but that should be an easy error to detect. FYI I implemented that approach in testthat: https://github.com/hadley/testthat/blob/master/R/wa

Re: [Rd] ASCII art in function documentation - difference html and text output?

2013-09-05 Thread Marc Schwartz
Rainer, Have you tried: \preformatted{...} which is documented in R-exts to preserve line breaks: Indicate text that is a literal example of a piece of a program. Text is displayed using typewriter font if possible. Formatting, e.g. line breaks, is preserved. (Note that this includes a line b

Re: [Rd] ASCII art in function documentation?

2013-09-05 Thread Rainer M Krug
"Brian G. Peterson" writes: > On 09/05/2013 09:10 AM, Rainer M Krug wrote: >> want to include ascii art in a function documentation which should >> look as follow: >> >> , >> | +--+--+--+ >> | | 1/16 | 1/16 | 1/16 | >> | +--+--+--+ >> | | 1/16 | 8/16 | 1/16 | >> | +-

Re: [Rd] Comments requested on "changedFiles" function

2013-09-05 Thread Karl Millar
Comments inline: On Wed, Sep 4, 2013 at 6:10 PM, Duncan Murdoch wrote: > > On 13-09-04 8:02 PM, Karl Millar wrote: >> >> Hi Duncan, >> >> I think this functionality would be much easier to use and understand if >> you split it up the functionality of taking snapshots and comparing them >> into s