Re: [R] problem downloading R

2021-03-04 Thread Abby Spurdle
Does the following sound familiar? The Windows installer starts installing (or decompressing) R, flashing one file name at a time. And then, part way through, says file is corrupt, and gives you the choice to ignore. And if you click ignore, then the next file does the same thing. And one

Re: [R] A tibble with date column appears different in shiny

2021-03-04 Thread Gayathri Nagarajan
Hi Rui Tried renderDatatable, but now my shiny UI shows Blank for my tibble. Not sure what Iam missing suddenly when this was working fine a day back. The one change I did was: x <- getURL(" https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-counties.csv ") us_counties <-

Re: [ESS] [External] Re: [External] Re: emacs 27.1 crashes regularly on Mac M1

2021-03-04 Thread Richard M. Heiberger via ESS-help
It has crashed three times in the last hour. Each time as I was typing into my filename.r buffer. This time the Problem Report message to Apple includes Exception Type:EXC_BAD_ACCESS (SIGABRT) Exception Codes: KERN_INVALID_ADDRESS at 0x015a Exception Note:

Re: [R] Warning messages while parallel computing

2021-03-04 Thread Bill Dunlap
Perhaps just try source("xx.R") invisible(gc()) # do warnings appear after this? It does seem likely that the sourced file causes the problem, since parallel::createCluster labels the connections ":" and that label would show up in the warning. On Thu, Mar 4, 2021 at 11:28 AM Henrik

Re: [R] Warning messages while parallel computing

2021-03-04 Thread Henrik Bengtsson
Test with: clusterCall(cl, function() { suppressWarnings(source("xx.R")) }) If the warnings disappear, then the warnings are produced on the workers from source():ing the file. /Henrik On Thu, Mar 4, 2021 at 10:20 AM Bill Dunlap wrote: > > The warnings come from the garbage collector, which

Re: [R] Adding a title to a plot

2021-03-04 Thread Jeff Reichman
Kim See plot.boxcox function which has main = NULL, sub = NULL arguments Jeff -Original Message- From: R-help On Behalf Of DY Kim Sent: Thursday, March 4, 2021 7:42 AM To: r-help@r-project.org Subject: [R] Adding a title to a plot Greetings! I am currently using R x64 4.0.4. I used

[R-es] simulación

2021-03-04 Thread Jose Betancourt Bethencourt
Estimados Quisieramos agregar una linea de ¨casos reales¨ despues de los 300 casos en la simulación saludos José library(EpiModel) SIR Model with Vital Dynamics (One-Group) param <- param.dcm(inf.prob = 0.2, act.rate = 10, rec.rate = 1/3, a.rate = 1/90, ds.rate = 1/100,

Re: [R] Warning messages while parallel computing

2021-03-04 Thread Bill Dunlap
The warnings come from the garbage collector, which may be called from almost anywhere. It is possible that the file that is sourced causes the problem, but if you don't call parallel::stopCluster before removing the cluster object you will get those warnings. > cl <- parallel::makeCluster(3,

Re: [R] Warning messages while parallel computing

2021-03-04 Thread Henrik Bengtsson
I don't think 'parallel' is to blame in this case. Those warnings: Warning in for (i in seq_len(Ne + echo)) { : closing unused connection 19 come from base::source() [https://github.com/wch/r-source/blob/9caddc1eaad1f480283f1e98af34a328699d1869/src/library/base/R/source.R#L166-L244]. Unless

Re: [R] Warning messages while parallel computing

2021-03-04 Thread Bill Dunlap
To avoid the warnings from gc(), call parallel::stopCluster(cl) before removing or overwriting cl. -Bill On Thu, Mar 4, 2021 at 1:52 AM Shah Alam wrote: > > Hello everyone, > > I am using the "parallel" R package for parallel computation. > > Code: > ># set number of cores > cl <-

Re: [R] Adding a title to a plot

2021-03-04 Thread Duncan Murdoch
Wow, that was an unnecessarily complicated suggestion. Just run title("My title") after running boxcox(). Duncan Murdoch On 04/03/2021 12:30 p.m., Duncan Murdoch wrote: On 04/03/2021 8:41 a.m., DY Kim wrote: Greetings! I am currently using R x64 4.0.4. I used the box-cox power

Re: [R] Adding a title to a plot

2021-03-04 Thread Duncan Murdoch
On 04/03/2021 8:41 a.m., DY Kim wrote: Greetings! I am currently using R x64 4.0.4. I used the box-cox power transformation to create a range of lambdas and log-likelihood values using the equation. b1=boxcox (DV ~ IV1 + IV2, data= newdata) The above codes automatically created a plot with

Re: [R] problem downloading R

2021-03-04 Thread Duncan Murdoch
On 04/03/2021 11:02 a.m., Dick Mathews wrote: I am trying to download the Windows version of R. This computer is Win7, I do have Win10 computers also. Tried R4.0.4, got message these files are corrupted. Then tried R4.0.3, got same message as above. Tried the next, R4.0.2, got same message.

Re: [R] problem downloading R

2021-03-04 Thread Jeff Newmiller
Not much. Try a different mirror site. Try disabling anti-virus download filters. If you are using a cloud-backed directory like OneDrive, try downloading and installing on a standard local disk. On March 4, 2021 8:02:43 AM PST, Dick Mathews wrote: >I am trying to download the Windows version

Re: [R] Adding a title to a plot

2021-03-04 Thread Eric Berger
Untested b1=boxcox( DV ~ IV1 + IV2, data= newdata, main="My main title\n My Subtitle") On Thu, Mar 4, 2021 at 11:56 AM DY Kim wrote: > Greetings! > > I am currently using R x64 4.0.4. > > I used the box-cox power transformation to create a range of lambdas and > log-likelihood values using

[R] Adding a title to a plot

2021-03-04 Thread DY Kim
Greetings! I am currently using R x64 4.0.4. I used the box-cox power transformation to create a range of lambdas and log-likelihood values using the equation. b1=boxcox (DV ~ IV1 + IV2, data= newdata) The above codes automatically created a plot with lambdas and log-likelihood values. I want

[R] problem downloading R

2021-03-04 Thread Dick Mathews
I am trying to download the Windows version of R. This computer is Win7, I do have Win10 computers also. Tried R4.0.4, got message these files are corrupted. Then tried R4.0.3, got same message as above. Tried the next, R4.0.2, got same message. I checked to see if I was downloading the

Re: [R] A tibble with date column appears different in shiny

2021-03-04 Thread Rui Barradas
Hello, This is a known issue with renderTable. Show the results with renderDataTable instead. Hope this helps, Rui Barradas Às 15:24 de 03/03/21, Gayathri Nagarajan escreveu: Hi Team I have a tibble like the below : class(us_counties) [1] "tbl_df" "tbl""data.frame"

Re: [R] A tibble with date column appears different in shiny

2021-03-04 Thread Gayathri Nagarajan
Hi Rui I have tried the same but this is not working. when I do head(us_counties), I clearly see this is a date,in R studio console head(us_counties) date deaths Todays_deathscounty state fips 1: 2020-03-19 0 0 Abbeville South Carolina 45001 2: 2020-03-20

[ESS] Trailing slash deleted from find-file prompt

2021-03-04 Thread Brendan.Halpin via ESS-help
There is an intermittent problem that I have been observing for a year or two, using ESS: After some time, or some action, in ESS, and I think only in R-mode, the find-file prompt loses its trailing slash, and if you want to complete you need to insert it by hand. I suspect this is due to a

Re: [R] Warning messages while parallel computing

2021-03-04 Thread Jiefei Wang
Hi Shah, The error usually means you started a cluster and forgot to close it. From the code you post, I cannot see any problem. Maybe you run `makeCluster` twice by accident? Best, Jiefei On Thu, Mar 4, 2021 at 5:53 PM Shah Alam wrote: > Hello everyone, > > I am using the "parallel" R

[R] Warning messages while parallel computing

2021-03-04 Thread Shah Alam
Hello everyone, I am using the "parallel" R package for parallel computation. Code: # set number of cores cl <- makeCluster(8, type = "PSOCK") # Mac/Linux need to set as "FORK" # pass functions and objects to the cluster environment and set seed # all the items exported