[Rd] Object.size() should not visit every element for alt-rep strings, or there should be an altstring_objectsize_method

2019-01-31 Thread Travers Ching
Below is a toy alt-rep string example, that generates N random strings: https://gist.github.com/traversc/a48a504eb062554f2d6ff8043ca16f9c example: `x <- altrandomStrings(1e8)` `head(x)` [1] "2PN0bdwPY7CA8M06zVKEkhHgZVgtV1" "5PN2qmWqBlQ9wQj99nsQzldVI5ZuGX" ... `object.size(1e8)` Object.size wil

Re: [Rd] Object.size() should not visit every element for alt-rep strings, or there should be an altstring_objectsize_method

2019-01-31 Thread Tierney, Luke
You should really take this up with RStudio. Calling object.size on every top level assignment as they appear to do is a bad idea, even without ALTREP. object.size is only a cheap operation for simple atomic vectors. For anything with recursive sturcture it needs to walk the object, so the effort i

Re: [Rd] nlminb with constraints failing on some platforms

2019-01-31 Thread ProfJCNash
This is not about the failure on some platforms, which is an important issue. However, what is below may provide a temporary workaround until the source of the problem is uncovered. FWIW, the problem seems fairly straightforward for most optimizers at my disposal in the R-forge (developmental) ver

Re: [Rd] nlminb with constraints failing on some platforms

2019-01-31 Thread Amit Mittal
Prof Nash, Prof Galanos Is it possible to use a generic code stub in front of packages that use optimx to improve optimx use or curtail it according to the requirements? Best Regards Amit +91 7899381263 Pleas

Re: [Rd] Runnable R packages

2019-01-31 Thread David Lindelof
Belated thanks to all who replied to my initial query. In summary, three approaches have been mentioned to run R code "in production": 1) ShinyProxy, mentioned by Tobias, for deploying Shiny applications; 2) Docker-like solutions, mentioned by Gergely and IƱaki; and 3) Solutions based on Rscript or

Re: [Rd] Runnable R packages

2019-01-31 Thread Duncan Murdoch
On 31/01/2019 9:32 a.m., David Lindelof wrote: Belated thanks to all who replied to my initial query. In summary, three approaches have been mentioned to run R code "in production": 1) ShinyProxy, mentioned by Tobias, for deploying Shiny applications; 2) Docker-like solutions, mentioned by Gergel

Re: [Rd] Runnable R packages

2019-01-31 Thread Barry Rowlingson
On Thu, Jan 31, 2019 at 3:14 PM David Lindelof wrote: > > In summary, I'm convinced R would benefit from something similar to Java's > `Main-Class` header or Python's `__main__()` function. A new R CMD command > would take a package, install its dependencies, and run its "main" > function. I j

Re: [Rd] Runnable R packages

2019-01-31 Thread Jan Gorecki
Quoting: "In summary, I'm convinced R would benefit from something similar to Java's `Main-Class` header or Python's `__main__()` function. A new R CMD command would take a package, install its dependencies, and run its "main" function." This kind of increase the scope of your idea. New command i

Re: [Rd] Runnable R packages

2019-01-31 Thread David Lindelof
Would you care to share how your package installs its own dependencies? I assume this is done during the call to `main()`? (Last time I checked, R CMD INSTALL would not install a package's dependencies...) On Thu, Jan 31, 2019 at 4:38 PM Barry Rowlingson < b.rowling...@lancaster.ac.uk> wrote: >

Re: [Rd] Object.size() should not visit every element for alt-rep strings, or there should be an altstring_objectsize_method

2019-01-31 Thread Travers Ching
Hi Lujke, Thanks for the response. But for some reason, this is a duplicate post I had sent WEEKS ago, but for some reason is only showing up now? I initially thought it was filtered out and detected as spam because of the github link, so I re-wrote the email (several times in fact), and you can

Re: [Rd] nlminb with constraints failing on some platforms

2019-01-31 Thread ProfJCNash
I'm not entirely sure what you are asking. However, optimx is really NOT meant as a production tool. I intend it as a way to 1) try out a lot of optimizers quickly on a user's problem or problem class to select a method or methods that suit well; 2) to provide (in the source code of optimr()) an ex