Re: [R] how to deal with deprecated functions

2019-12-06 Thread Néstor Toledo
Ok I understand. I wasn't intended to look as complaining, sorry. It was interesting to get the pointview of a developer (thanks JC Nash). To code a new package comprising useful but deprecated functions is a very good advice, thanks, I will try to hone my coding skills to do so (and to be more i

Re: [R] R commander (Rcmdr) won't start [SOLVED]

2019-12-06 Thread Fox, John
Dear Gabriele, I'm glad that you were able to solve your problem. I spent a bit of time today updating my R from 3.6.0 to 3.6.1 and updating all R packages on Ubuntu, and, for what is now an obvious reason, I was unable to duplicate the problem. Saving the .Rhistory file is benign but saving th

Re: [R] R commander (Rcmdr) won't start [SOLVED]

2019-12-06 Thread Jeff Newmiller
Experienced R users avoid creating .Rdata files (with nothing in front of the period) because R will automatically load them and any mistakes recorded there can interfere with future uses of R when started from the directory containing that file. RData files with something in front of the period

[R] R commander (Rcmdr) won't start [SOLVED]

2019-12-06 Thread gabriele pallotti
I managed to get Rcmdr working simply by deleting the .Rdata and .Rhistory file from the work directory. It is rather weird, as I thought they only contained data and settings, but probably some of these belonged to the older version of R/Rcmdr and were not compatible with the new version. I'll kee

Re: [R] How prevent update of a package

2019-12-06 Thread Marc Girondot via R-help
Thanks for your answer. I try this trick: mkdir packages sudo chmod -R a+w packages ls -al drwxrwxrwx��� 2 marcgirondot staff� 64� 6 d�c 17:20 packages Now in R > require(devtools) > > install_version("raster", version = "2.5-8", repos ="http://cran.us.r-project.org";, ��� lib="/Use

[R] A better scales::dollar() ?

2019-12-06 Thread POLWART, Calum (COUNTY DURHAM AND DARLINGTON NHS FOUNDATION TRUST) via R-help
I'm writing a quite large document in Rmarkdown which has financial data in it. I format that data using scales::dollar() currently something like this: > > require (scales) > x = 10 > cat (dollar (x, prefix ="£", big.mark=",")) £100,000 But actually, I'd quite like to get £100k out in tha

[R] R commander (Rcmdr) won't start

2019-12-06 Thread gabriele pallotti
Hallo I've been using R and R commander (Rcmdr) for some years, never had problems. I'm on Xubuntu 16.04. Yesterday I updated R from 3.4.4 to 3.6.1 and all sorts of problems occurred. Firstly I completely removed R from my system, including old directories (with some hiccups, I must admit). Then I

Re: [R] Help to write the R-code, please

2019-12-06 Thread Martin Maechler
> Richard O'Keefe > on Fri, 6 Dec 2019 12:18:50 +1300 writes: > This particular task is not a problem about R. > It is a problem n combinatorics. > Start with the obvious brute force algorithm > (1) Let S be the union of all the sets > (2) For each K in 0 .. |S|