Re: [R] [External] Re: read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade to R 4.0.2?

2020-07-16 Thread luke-tierney
On my Ubuntu system the download with read.csv succeeds in an R console if I set the HTTPUserAgent and download.file.method options to match the ones used by RStudio. Given how picky the server is being I would worry about whether this use is in line with the site's terms of service. Best,

Re: [R] Probabilities in discrete event simulation model in R

2020-07-16 Thread Bert Gunter
Please read and follow the posting guide linked below when asking for help here. This is not a "we do the work for you" forum. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County"

[R] Probabilities in discrete event simulation model in R

2020-07-16 Thread Shah Alam
I am designing a programme in R to simulate two events that are 1. a person gets cancer, or 2. die of other causes. I have data for the probability of getting cancer by age and probability of death due to causes other than cancer. 1. My dataset has 3 columns 1) age 2) prob getting cancer

Re: [R] read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade to R 4.0.2?

2020-07-16 Thread Ista Zahn
On Thu, Jul 16, 2020 at 5:15 PM Ista Zahn wrote: > > On Thu, Jul 16, 2020 at 8:18 AM Rui Barradas wrote: > > > > Hello, > > > > Thanks, but no, download.file still gives 403 Forbidden with both method > > = "libcurl" and method = "wget". > > I think that makes it "not an R question". Ask on >

Re: [R] read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade to R 4.0.2?

2020-07-16 Thread Ista Zahn
On Thu, Jul 16, 2020 at 8:18 AM Rui Barradas wrote: > > Hello, > > Thanks, but no, download.file still gives 403 Forbidden with both method > = "libcurl" and method = "wget". I think that makes it "not an R question". Ask on https://unix.stackexchange.com/ maybe? Best, Ista > > Rui Barradas >

Re: [R] read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade to R 4.0.2?

2020-07-16 Thread Daniel Nordlund
On 7/15/2020 4:02 PM, Rui Barradas wrote: Hello, R 4.0.2 on Ubuntu 20.04 LTS, sessionInfo below. I'm also unable to read the file with Rscript from the Ubuntu terminal but the error is not the same as the OP's. The first try was a file test1.R with the following commands.

Re: [R] Year and month from a sequence

2020-07-16 Thread Miluji Sb
Dear Jim, Eric, and Rui, Great solutions! Thank you so much. Best, Milu On Wed, Jul 15, 2020 at 9:20 AM Rui Barradas wrote: > Hello, > > Yet another way, with package lubridate. > When creating the "Date" objects, I set day = 1 to compare to TRUE below. > > > library(lubridate) > > start <-

Re: [R] Error in chol.default

2020-07-16 Thread J C Nash
The error msg says it all if you know how to read it. > When I run the optimization (given that I can't find parameters that > fit the data by eyeball), I get the error: > ``` > Error in chol.default(object$hessian) : > the leading minor of order 1 is not positive definite Your Jacobian

[R] Error in chol.default

2020-07-16 Thread Luigi Marongiu
Hello, I am trying to fit a Richards model to some cumulative incidence data of infection. I got this example: ``` rich = function(p, x) { a = p["curvature"] k = p["finalPop"] r = p["growthRate"] y = r * x * (1-(x/k)^a) return(y) } ricky = function(p, x, y) p$r * x * (1-(x/p$k)^p$a) -y #

[R-es] Rcomander (Anova de dos factores con interacción)

2020-07-16 Thread David Aguinaga
Buenas tardes, Tengo una tabla de doble entrada sobre la que deseo efectuar una análisis anova de dos factores con interacción a través de Rcomander. La tabla tiene esta forma: ritmo X Y Z Altura A 10,15 10,22 15,24 B 11,22 14,3 65,31 Mi pregunta es: ¿Debo dar otra forma a la tabla para

Re: [R] read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade to R 4.0.2?

2020-07-16 Thread Rui Barradas
Hello, Thanks, but no, download.file still gives 403 Forbidden with both method = "libcurl" and method = "wget". Rui Barradas Às 05:31 de 16/07/20, Jeff Newmiller escreveu: Perhaps read FAQ 7.43? [1] [1]

[R] aws.s3::s3sync Error in curl::curl_fetch_disk(url, x$path, handle = handle) : Failed to open file

2020-07-16 Thread nevil amos
I am trying to use aws.s3::s3sync to sync the contents of a bucket to an aws ec2 instance ( via rstudio server) my script is as follows I cannot make a repro since that would need to be run from the instance with my account key and details ( replaced with xx below). all files I am