Re: [Rd] Conventions: Use of globals and main functions

2019-08-28 Thread Peter Meissner
The point is, that there are several possible problems. But. One the one hand they are not really problematic in my opinion (I do not care if my function has potential access to objects outside of its environment because this access is read-only at worst and it's not common practice to use this p

Re: [Rd] Conventions: Use of globals and main functions

2019-08-28 Thread Peter Meissner
Firtst, I think that thinking about best practice advise and beeing able to accomandate different usage scenarios is a good thing despite me arguing against introducing the main()-idiom. Let's have another turn on the global-environment is bad argument. It has two parts: (1) Glattering namespace

Re: [Rd] Conventions: Use of globals and main functions

2019-08-27 Thread Peter Meissner
Hey, I always found it a strength of R compared to many other langaugas that simple things (running a script, doing something interactive, writing a function, using lambdas, installing packages, getting help, ...) are very very simple. R is a commandline statistics program that happens to be a ve

Re: [Rd] Runnable R packages

2019-02-07 Thread Peter Meissner
Doesn't Rtools provide everything needed to build R packages and R on Windows - including gcc? Am Sa., 2. Feb. 2019 um 22:29 Uhr schrieb Abs Spurdle : > Creating an .exe file isn't necessarily difficult. > The main problems are that you have to write and compile the C (or other) > files. > Otherw

Re: [Rd] split() - unexpected sorting of results

2017-10-22 Thread Peter Meissner
_order(as.character(x), numeric = TRUE) > as.character(x)[i] > #[1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" > > > Unfortunately this does not solve the OP&#

Re: [Rd] split() - unexpected sorting of results

2017-10-20 Thread Peter Meissner
Thanks, for the explanation. Still, I think this is surprising bahaviour which might be handled better. Best, Peter Am 20.10.2017 9:49 nachm. schrieb "Iñaki Úcar" : > Hi Peter, > > 2017-10-20 21:33 GMT+02:00 Peter Meissner : > > Hey, > > > > I found

[Rd] split() - unexpected sorting of results

2017-10-20 Thread Peter Meissner
Hey, I found this - for me - quite surprising and puzzling behaviour of split(). split(1:11, as.character(1:11)) split(1:11, 1:11) When splitting by numerics everything works as expected - sorting of input == sorting of output -- but when using a character vector everything gets re-sorted alph

Re: [Rd] r-devel @ Travis

2016-01-18 Thread Peter Meissner
Hey, Metacran's rbuilder is the place to get started: https://github.com/metacran/r-builder You should be good to go by placing this in your Github repo (branch): https://github.com/metacran/r-builder/blob/master/.travis.yml .. than tell Travis to whatch you repo. Best, Peter Am .01

Re: [Rd] Graphical User Interface (GUI)

2015-07-08 Thread Peter Meissner
Have a look at gWidgets (John Verzani). Best, Peter Am 08.07.2015 22:29 schrieb "Dean Attali" : > Isn't this exactly what Shiny is meant for? > http://shiny.rstudio.com/ > > --- > http://deanattali.com > > On 8 July 2015 at 11:43, vthokienj wrote: > > > I'd like to create a user interface for m

Re: [Rd] Add-on argument in sample()

2015-06-16 Thread Peter Meissner
Am .06.2015, 14:55 Uhr, schrieb Millot Gael : Hi. I have a problem with the default behavior of sample(), which performs sample(1:x) when x is a single value. This behavior is well explained in ?sample. However, this behavior is annoying when the number of value is not predictable. Would i

Re: [Rd] Unicode display problem with data frames under Windows

2015-05-26 Thread Peter Meissner
Am .05.2015, 09:01 Uhr, schrieb Richard Cotton : On 25 May 2015 at 19:43, Duncan Murdoch wrote: http://stackoverflow.com/questions/17715956/why-do-some-unicode-characters-display-in-matrices-but-not-data-frames-in-r Yes, but it is a bug, just a hard one to fix. It needs someone to dedicat

Re: [Rd] Unicode display problem with data frames under Windows

2015-05-25 Thread Peter Meissner
Am .05.2015, 18:43 Uhr, schrieb Duncan Murdoch : On 25/05/2015 11:37 AM, Ista Zahn wrote: AFAIK this is the way it works on Windows. It has been discussed in several places, e.g. http://stackoverflow.com/questions/17715956/why-do-some-unicode-characters-display-in-matrices-but-not-data-frames

Re: [Rd] Citation if copying R base code

2014-11-06 Thread Peter Meissner
Thank you all for your advise, comments and suggestions. To keep it simple and play it fair and save, I choose to take the following actions: Within DESCRIPTION - the License now reads: License: GPL (>= 2) - the Authors are specified as Authors@R: as.person(c( "Peter Meissn

Re: [Rd] Citation if copying R base code

2014-11-06 Thread Peter Meissner
But how might I do that? Writing GPL in DESCRIPTION and putting my name in every R-file? Am 2014-11-06 15:46, schrieb Hadley Wickham: And if yes how to do it best? What is the standard procedure here? Should I include base package authors as contributors in DESCRIPTION??? Am I allowed to us

[Rd] Citation if copying R base code

2014-11-06 Thread Peter Meissner
Dear Listeners, ... also I read the CRAN policies and tried to solve those questions myself I feel very much in the need of good advise ... I am currently finishing a package that -- to solve some nasty problems with dirty data -- uses its own as.Date() equivalent methods (i.e. its own gene