Re: [R] Error in running get_acs()

2025-04-10 Thread Duncan Murdoch
The tidycensus package is a contributed package, it's not part of R. You should probably report this to its maintainers at https://github.com/walkerke/tidycensus/issues Duncan Murdoch On 2025-04-09 12:15 p.m., Deana Kittaneh via R-help wrote: Hi R team!     Since last Friday 04/04, my team

Re: [R] Error in running get_acs()

2025-04-09 Thread Ben Bolker
This might be related: https://bsky.app/profile/kylewalker.bsky.social/post/3lm3ivicrxc2q > The Census website has been blocking requests from tigris (and curl) since yesterday. (Don’t worry, the datasets are still there!) I’ve patched tigris, install with `pak::pak("walkerke/tigris@

Re: [R] Error when loading optimx package and a solution

2025-02-05 Thread peter dalgaard
I think the operative words here are "brew install". I.e., this is a homebrew installation, and thus nothing to do with CRAN. Nothing wrong with homebrew as far as R Core and the CRAN team knows, we just don't support it, so you have to hope for response from other homebrew users. - Peter D.

Re: [R] error when trying to install {rgdal} on Windows

2024-04-30 Thread Martin Maechler
[I have fixed your subject: "text" is really on of the most unuseful subjects we've ever seen on this list ... ] > Farzad Ghooshi on Sun, 28 Apr 2024 12:17:34 +0330 writes: > Hi dear friend I use rgdal package for shape files. > When installing the package, it gives me the following > error

Re: [R] Error message

2024-03-22 Thread Ivan Krylov via R-help
В Fri, 22 Mar 2024 14:52:05 -0500 Val пишет: > : 8d5a 35f8 1ac5 cc14 a04e be5c 572f a3ad .Z5..N.\W/.. > 0010: 6210 7024 9b58 93c7 34d0 acb7 7a82 3f99 b.p$.X..4...z.?. Thank you! This doesn't look like any structured data to me. In particular, it doesn't look like something wri

Re: [R] Error message

2024-03-22 Thread Val
Here is the first few bytes, xxd -l 128 X1.RData : 8d5a 35f8 1ac5 cc14 a04e be5c 572f a3ad .Z5..N.\W/.. 0010: 6210 7024 9b58 93c7 34d0 acb7 7a82 3f99 b.p$.X..4...z.?. 0020: 66ce 0ebb 2057 ec36 55b4 0ece a036 695a f... W.6U6iZ 0030: 258b 3493 b661 f620 f7fe ada7 158a 1

Re: [R] Error message

2024-03-22 Thread Ivan Krylov via R-help
В Fri, 22 Mar 2024 14:31:17 -0500 Val пишет: > How do I get the first few bytes? What does file.info('X1.RData') say? Do you get any output if you run print(readBin('X1.RData', raw(), 128))? If this is happening on a Linux or macOS machine, the operating system command xxd -l 128 X1.RData wi

Re: [R] Error message

2024-03-22 Thread Val
Yes, X1.RData is large(more than 40M rows) . How do I get the first few bytes? On Fri, Mar 22, 2024 at 2:20 PM Ivan Krylov wrote: > > В Fri, 22 Mar 2024 14:02:09 -0500 > Val пишет: > > > X2.R > > load("X1.RData") > > > > I am getting this error message: > > Error in load("X1.RData", : > > ba

Re: [R] Error message

2024-03-22 Thread Ivan Krylov via R-help
В Fri, 22 Mar 2024 14:02:09 -0500 Val пишет: > X2.R > load("X1.RData") > > I am getting this error message: > Error in load("X1.RData", : > bad restore file magic number (file may be corrupted) .. no data > loaded. This error happens very early when R tries to load the file, right at the fir

Re: [R] Error while installing the R from CRAN website!

2023-12-15 Thread Ivan Krylov
В Thu, 14 Dec 2023 22:30:17 +0530 siddharth sahasrabudhe via R-help пишет: > I have installed R on my machine. What operating system does your machine run? Was it the latest version of R that you installed? > After I open the R program I am getting the following message on the > console: > Erro

Re: [R] Error in setwd(dir) when initializing R

2023-11-20 Thread Ivan Krylov
On Mon, 20 Nov 2023 12:18:11 +0100 Ana de las Heras Molina wrote: > Error in setwd(dir) : no es posible cambiar el directorio de trabajo If you run traceback() first thing after getting this error, does it say anything useful? (Anything besides "No traceback available" would count as useful.) D

Re: [R] Error in setwd(dir) when initializing R

2023-11-20 Thread Kevin Thorpe
I think that you may be correct about OneDrive being related. I have seen OneDrive associated with problems before. What happens if you manually set the working directory to that location? Does it work if your default home directory is local to your machine? > On Nov 20, 2023, at 6:18 AM, Ana

Re: [R] Error running gee function. I neither understand the error message, nor know what needs to be done the get the gee to run

2023-10-25 Thread Duncan Murdoch
Actually a better solution would be to make PID into a factor. They can always be coerced to a number, but will display with your meaningful labels. Duncan Murdoch On 25/10/2023 3:38 p.m., Duncan Murdoch wrote: I don't see it documented, but it appears that the gee() function assumes the id v

Re: [R] Error running gee function. I neither understand the error message, nor know what needs to be done the get the gee to run

2023-10-25 Thread Duncan Murdoch
I don't see it documented, but it appears that the gee() function assumes the id variable can be coerced to a number. Your ids are in PID, and are strings like "HIPS004", etc. Change that to "004" or a numeric 4 and the error goes away. Duncan Murdoch On 25/10/2023 3:23 p.m., Sorkin, John w

Re: [R] Error "STRING_ELT() can only be applied to a 'character vector', not a 'list'" from rmarkdown

2023-08-25 Thread Chris Evans via R-help
Fascinating and, as ever, extremely helpful Ivan.  Duncan Murdoch nudged me in the right direction and for now the solution for me is that if I don't have the lines: description: |   CE's pages "blog posts" about using R in _site.yaml that have been there for ages, then everything works.  If I

Re: [R] Error "STRING_ELT() can only be applied to a 'character vector', not a 'list'" from rmarkdown

2023-08-25 Thread Ivan Krylov
В Fri, 25 Aug 2023 11:49:03 +0200 Chris Evans via R-help пишет: > Hm.  I tried that butI really don't know what to make of what it's > telling me.  It seemed to me that I was just stepping through the > same bits of code (with the warning that the debugger didn't > have the source so I'm not rea

Re: [R] Error "STRING_ELT() can only be applied to a 'character vector', not a 'list'" from rmarkdown

2023-08-25 Thread Chris Evans via R-help
On 24/08/2023 21:05, Duncan Murdoch wrote: On 24/08/2023 1:58 p.m., Chris Evans via R-help wrote: I have an Rmarkdown file which is part of my distill "Rblog" (https://www.psyctc.org/Rblog/).  It was knitting fine until last week, now knitting terminates with this: Rscript -e 'rmarkdown::rend

Re: [R] Error "STRING_ELT() can only be applied to a 'character vector', not a 'list'" from rmarkdown

2023-08-25 Thread Chris Evans via R-help
Thanks Duncan.  I've pushed the whole collection to: https://github.com/cpsyctc/Rblog On 24/08/2023 20:54, Duncan Murdoch wrote: Could you post a link to the source for that Rmd file? Duncan Murdoch [rest snipped] __ R-help@r-project.org mailing l

Re: [R] Error "STRING_ELT() can only be applied to a 'character vector', not a 'list'" from rmarkdown

2023-08-24 Thread Duncan Murdoch
On 24/08/2023 1:58 p.m., Chris Evans via R-help wrote: I have an Rmarkdown file which is part of my distill "Rblog" (https://www.psyctc.org/Rblog/).  It was knitting fine until last week, now knitting terminates with this: Rscript -e 'rmarkdown::render("creating-a-shiny-server.Rmd")' processin

Re: [R] Error "STRING_ELT() can only be applied to a 'character vector', not a 'list'" from rmarkdown

2023-08-24 Thread Duncan Murdoch
Could you post a link to the source for that Rmd file? Duncan Murdoch On 24/08/2023 1:58 p.m., Chris Evans via R-help wrote: I have an Rmarkdown file which is part of my distill "Rblog" (https://www.psyctc.org/Rblog/).  It was knitting fine until last week, now knitting terminates with this: R

Re: [R] Error in analysis of Rasch using eRm package.

2023-08-22 Thread Rui Barradas
Às 16:49 de 21/08/2023, nor azila escreveu: Dear R users, I am using eRm package in analysing my polytomous data as below Respondents = 277 people Item = 30 questions The data consists of 0,1,2,3 responses/answers. I'm having a problem in writing coding as below because I do not know what I s

Re: [R] Error: promise already under evaluation

2023-07-18 Thread Joseph Lucke
Fixed! I was not passing a tol value from the outer function to the inner qnbinom() function. Because the scope of tol in qbinom() was confined to the outer function, qnbinom was not accessing the globally defined tol value. Furthermore, because the outer function itself was embedded in integrate()

Re: [R] Error: promise already under evaluation

2023-07-18 Thread Ivan Krylov
В Tue, 18 Jul 2023 09:28:30 -0400 Joseph Lucke пишет: > Error in qnbinom(1 - tol, size = q, prob = r) : > pRsq.Rhosq <- function(x, n, p, Rhosq,tol=tol){ It looks like you're not passing the `tol` parameter, and its default value unfortunately refers to itself: (function(x = x) x)() # Error in

Re: [R] error in arfima...

2023-06-09 Thread Martin Maechler
ent: Monday, June 5, 2023 3:19 PM > To: akshay kulkarni > Cc: Martin Maechler ; R help Mailing list > Subject: Re: [R] error in arfima... >> Dear Martin, >> REgrets to reply this late >> I am staring at a conundrum never before encountered in my exp

Re: [R] error in arfima...

2023-06-05 Thread akshay kulkarni
Cc: Martin Maechler ; R help Mailing list Subject: Re: [R] error in arfima... > Dear Martin, > REgrets to reply this late > I am staring at a conundrum never before encountered in my experience with R: > LYGH[[201]] > [1] 45.40 3.25 6.50 2.15 >

Re: [R] error in arfima...

2023-06-05 Thread Martin Maechler
on that server. Notably the Windows version of R has had problems fixed in the mean time .. and at least there's a hope the problem disappears. Lastly (but probably not helping more), you could use dput() with control="digits" and even .Internal(inspect( * )) magic on your LYGH[[201]

Re: [R] error in arfima...

2023-06-04 Thread akshay kulkarni
"ar" [6] "ma" "covariance.dpq" "fnormMin""sigma" "stderror.dpq" [11] "correlation.dpq" "h" "d.tol" "M" "hessian.dpq&q

Re: [R] error in arfima...

2023-06-01 Thread Martin Maechler
> akshay kulkarni > on Wed, 31 May 2023 20:55:33 + writes: > dear members, > I am using arfima() from forecast package to model a time > series. The following is the code: >> LYGH[[202]] > [1] 45.40 3.25 6.50 2.15 >> arfima(LYGH[[202]]) > Error in

Re: [R] Error message when using 'optim' for numerical maximum likelihood

2023-05-14 Thread Rui Barradas
Às 06:28 de 14/05/2023, iguodala edwin via R-help escreveu: Good morning, How can I resolved error message New_X with convergence 1.Thanks [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Error message when using 'optim' for numerical maximum likelihood

2023-05-14 Thread iguodala edwin via R-help
Good morning, How can I resolved error message New_X with convergence 1.Thanks [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read t

Re: [R] Error in as.POSIXlt.character(x, tz, ...)

2023-05-11 Thread Ivan Krylov
В Thu, 11 May 2023 17:51:33 +0800 Jinsong Zhao пишет: > Both codes do not return NA on FreeBSD: > > > strptime("1970-01-01 00:00.00 UTC", "%Y-%m-%d %H:%M", '') > [1] "1970-01-01 CST" > > strptime("1970-01-01 00:00.00 UTC", "%Y-%m-%d", '') > [1] "1970-01-01 CST" I must have misread the cod

Re: [R] Error in as.POSIXlt.character(x, tz, ...)

2023-05-11 Thread Jinsong Zhao
The origin of this problem is when I try to update rstan package in R 4.3.0 on FreeBSD. I get the same error as that https://github.com/stan-dev/rstan/issues/612 However, I did not encounter this problem when using R 4.2.x or 4.1.x on FreeBSD. Best, Jinsong On 2023/5/11 16:56, Jinsong Zhao

Re: [R] Error in as.POSIXlt.character(x, tz, ...)

2023-05-11 Thread Jinsong Zhao
On 2023/5/11 17:22, Ivan Krylov wrote: В Thu, 11 May 2023 16:56:41 +0800 Jinsong Zhao пишет: When I run the following code in R 4.3.0 on FreeBSD, I got error. > as.POSIXct("1970-01-01 00:00.00 UTC") Error in as.POSIXlt.character(x, tz, ...) : character string is not in a standard unambi

Re: [R] Error in as.POSIXlt.character(x, tz, ...)

2023-05-11 Thread Jinsong Zhao
On 2023/5/11 17:24, Jeff Newmiller wrote: I find your claim suspect... a period is not interchangeable with a colon. Good catching, but In R 4.3.0 on FreeBSD, the same error after changing the period to a colon: > as.POSIXct("1970-01-01 00:00:00 UTC") Error in as.POSIXlt.character(x, tz, ...) :

Re: [R] Error in as.POSIXlt.character(x, tz, ...)

2023-05-11 Thread Jeff Newmiller
I find your claim suspect... a period is not interchangeable with a colon. On May 11, 2023 1:56:41 AM PDT, Jinsong Zhao wrote: >Hi there, > >When I run the following code in R 4.3.0 on FreeBSD, I got error. > >> as.POSIXct("1970-01-01 00:00.00 UTC") >Error in as.POSIXlt.character(x, tz, ...) : >

Re: [R] Error in as.POSIXlt.character(x, tz, ...)

2023-05-11 Thread Ivan Krylov
В Thu, 11 May 2023 16:56:41 +0800 Jinsong Zhao пишет: > When I run the following code in R 4.3.0 on FreeBSD, I got error. > > > as.POSIXct("1970-01-01 00:00.00 UTC") > Error in as.POSIXlt.character(x, tz, ...) : >character string is not in a standard unambiguous format Do strptime("1970-

Re: [R] Error on using Confint function to calculate 95% CI

2023-04-26 Thread bharat rawlley via R-help
Thanks a lot for your response  I managed to figure out the solution. There were some variables in my data which were not a part of the model but were interfering with the function. I removed those from my database and got the results  Thanks! Sent from Yahoo Mail for iPhone On Wednesday, Apr

Re: [R] Error on using Confint function to calculate 95% CI

2023-04-26 Thread Ebert,Timothy Aaron
Are the numbers you provided multiple estimates of one coefficient or are they one estimate each of over 20 coefficients? -Original Message- From: R-help On Behalf Of Michael Dewey Sent: Wednesday, April 26, 2023 5:14 AM To: bharat rawlley ; r-help@R-project.org Subject: Re: [R] Error

Re: [R] Error on using Confint function to calculate 95% CI

2023-04-26 Thread Michael Dewey
I am afraid your post is more or less unreadable since you posted in HTML and this is a plain text list. It might also help if you gave more context like the full results of your model. There is a list dedicated to mixed models https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models which ma

Re: [R] Error: 'format_glimpse' is not an exported object from 'namespace:pillar'

2023-03-21 Thread Ivan Krylov
Something in the code you're trying to run attempted to call pillar::format_glimpse [1]. The problem is, there's no format_glimpse in the version of pillar installed on your computer. The format_glimpse function appeared in pillar 1.5.1 [2]. Can you install a newer version of pillar? -- Best rega

Re: [R] error in exists.....

2022-12-28 Thread akshay kulkarni
Dear Bert, Thanks for sharing your views... THanking you, Yours sincerely, AKSHAY M KULKARNI From: Bert Gunter Sent: Wednesday, December 28, 2022 12:28 AM To: akshay kulkarni Cc: Sarah Goslee ; R help Mailing list Subject: Re: [R] error

Re: [R] error in exists.....

2022-12-27 Thread Bert Gunter
m: Bert Gunter > Sent: Tuesday, December 27, 2022 11:39 PM > To: akshay kulkarni > Cc: Sarah Goslee ; R help Mailing list > > Subject: Re: [R] error in exists. > > You are confused about the list hierarchy. Perhaps this will explain: > > i <- 1 > > E <-

Re: [R] error in exists.....

2022-12-27 Thread akshay kulkarni
Yours sincerely, AKSHAY M KULKARNI From: Bert Gunter Sent: Tuesday, December 27, 2022 11:39 PM To: akshay kulkarni Cc: Sarah Goslee ; R help Mailing list Subject: Re: [R] error in exists. You are confused about the list hierarchy. Perhaps this will explain

Re: [R] error in exists.....

2022-12-27 Thread Bert Gunter
reproduce it now? > > Thanking you, > Yours sincerely, > AKSHAY M KULKARNI > ____________ > From: Sarah Goslee > Sent: Tuesday, December 27, 2022 11:20 PM > To: akshay kulkarni > Cc: R help Mailing list > Subject: Re: [R] error in exists. >

Re: [R] error in exists.....

2022-12-27 Thread Greg Snow
You might try `hasName` instead of `exists` since `exists` is designed for environments and `hasName` for objects (like lists). Note that the order of the arguments is switched between the 2 functions. This does the same thing as Andrew Simmons' answer, but is a little bit shorter. On Tue, Dec 27

Re: [R] error in exists.....

2022-12-27 Thread akshay kulkarni
Thanking you, Yours sincerely, AKSHAY M KULKARNI From: Sarah Goslee Sent: Tuesday, December 27, 2022 11:20 PM To: akshay kulkarni Cc: R help Mailing list Subject: Re: [R] error in exists. Hi, I can't create the desired object using the code you provided, b

Re: [R] error in exists.....

2022-12-27 Thread Sarah Goslee
Hi, I can't create the desired object using the code you provided, but if I create it in two steps so that E$L[[i]]$T1A1 does exist, exist() returns TRUE. E <- new.env() E$L <- list() i <- 1 E$L[[i]]$T1A1 <- Sys.time() # returns: Error in `*tmp*`[[i]] : subscript out of bounds E$L[[i]] <- list(

Re: [R] error in exists.....

2022-12-27 Thread Andrew Simmons
exists() is for bindings in an environment, not for names in a list. try "T1A1" %in% names(E$L[[i]]) instead On Tue, Dec 27, 2022, 12:36 akshay kulkarni wrote: > Dear members, > I have the following code: > > E <- new.env() > > E$L <- list() > > i <- 1 > > E$

Re: [R] Error 3221226505

2022-12-18 Thread Bill Dunlap
Note that 3221226505 in base 10 is C409 in hexadecimal. You may have better luck looking for causes of this by googling the hex representation. -Bill On Sun, Dec 18, 2022 at 3:56 PM Mathurin, Gottfried via R-help < r-help@r-project.org> wrote: > Hello, > I currently face the issue of Window

Re: [R] Error 3221226505

2022-12-18 Thread David Winsemius
I cannot tell whether it would happen to me for two reasons: I don't use Windows anymore and R's current version is 4.2.1. You can determine whether it is the core packages that are throwing the error (rather unlikely) or perhaps something you have in your (invisible) .Rdata file. You should

Re: [R] Error 3221226505

2022-12-18 Thread Jeff Newmiller
Doesn't happen to me. On December 16, 2022 12:44:17 AM PST, "Mathurin, Gottfried via R-help" wrote: >Hello, >I currently face the issue of Windows 10 throwing a code 3221226505 >whenever I try to use R-4.1.3. >Is this issue known and could you possibly share a fix? > >Thank you in advance, > >*G

Re: [R] Error in if (class(networks) == "matrix") from a function

2022-09-22 Thread Chao Liu
Thank you Eric, Andrew, Rui and Martin for all your help and advice. I did learn some good practices under the new R version! Best, Chao On Thu, Sep 22, 2022 at 5:53 AM Martin Maechler wrote: > > Eric Berger > > on Wed, 21 Sep 2022 22:26:39 +0300 writes: > > > In R 4.2.0 there

Re: [R] Error in if (class(networks) == "matrix") from a function

2022-09-22 Thread Martin Maechler
> Eric Berger > on Wed, 21 Sep 2022 22:26:39 +0300 writes: > In R 4.2.0 there is a significant change. When you use an if() statement > with a condition of length > 1 this now reports an error. > e.g. this link mentions it as a change > https://www.jumpingrivers.com/bl

Re: [R] Error in if (class(networks) == "matrix") from a function

2022-09-21 Thread Rui Barradas
Hello, In my previous I forgot that this, for matrices to have 2 classes , is relatively new. It was introduced in R 4.0.0. From the News file [1], point 2: R News [R logo] CHANGES IN 4.0.0 SIGNIFICANT USER-VISIBLE CHANGES matrix objects now also inherit from class "array", so e.g., class(

Re: [R] Error in if (class(networks) == "matrix") from a function

2022-09-21 Thread Rui Barradas
Hello, Check what class(datmat) returns and use ?inherits instead. class(datmat) #[1] "matrix" "array" inherits(datmat, "matrix") #[1] TRUE Also, the error the posted code gives is centrality(datmat,type="flow",center=TRUE) Error in checkDataTypes(y = NULL, networks = networks, lag = lag) :

Re: [R] Error in if (class(networks) == "matrix") from a function

2022-09-21 Thread Andrew Simmons
In general, you should be using inherits(netwotks, "matrix") or is(networks, "matrix") instead of class() == Your function fails because your object has multiple classes so class== returns multiple logical values so if will fail. But inherits or is will return one logical value, so if will not ra

Re: [R] Error in if (class(networks) == "matrix") from a function

2022-09-21 Thread Eric Berger
In R 4.2.0 there is a significant change. When you use an if() statement with a condition of length > 1 this now reports an error. e.g. this link mentions it as a change https://www.jumpingrivers.com/blog/new-features-r420/ In your case this is because class(obj) can return a character vector of l

Re: [R] Error Running arules

2022-09-04 Thread Rui Barradas
Hello, Before removing all of R, why not run update.packages() ? Hope this helps, Rui Barradas Às 17:14 de 04/09/2022, Stephen H. Dawson, DSL via R-help escreveu: I contacted the arules package maintainer. He concluded the syntax I submitted to this original post is correct. The problem h

Re: [R] Error Running arules

2022-09-04 Thread Stephen H. Dawson, DSL via R-help
I contacted the arules package maintainer. He concluded the syntax I submitted to this original post is correct. The problem he estimates is a version mismatch within my R packages, although all packages I am using come from R repositories. Specifically, something is off on the r-base version

Re: [R] Error Running arules

2022-09-02 Thread Stephen H. Dawson, DSL via R-help
Go it, thanks. *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 9/2/22 12:46, Bert Gunter wrote: 1. I told you essentially everything there is to know. 2. Chapter 13.3 of "An Introduction to R" on 'namespaces'. 3. Search o

Re: [R] Error generated by nlme::gnls

2022-07-28 Thread Martin Maechler
> Bill Dunlap > on Sun, 24 Jul 2022 08:51:09 -0700 writes: > I think the intent of this code was to see if the formula > had solely a literal 1 on the right hand side. Then > !identical(pp[[3]], 1) would do it, avoiding the overhead > of calling deparse. Note that th

Re: [R] Error generated by nlme::gnls

2022-07-24 Thread Bill Dunlap
I think the intent of this code was to see if the formula had solely a literal 1 on the right hand side. Then !identical(pp[[3]], 1) would do it, avoiding the overhead of calling deparse. Note that the 1 might be an integer, which the current code would (erroneously) not catch, so !identical(pp

Re: [R] Error generated by nlme::gnls

2022-07-23 Thread Ivan Krylov
On Sun, 24 Jul 2022 16:03:24 +1200 Rolf Turner wrote: > My impression is that if the right hand side of a formula gets "too > long", then it gets split into parts --- which messes everything up. For new enough R (≥ 4.0), it's possible to use deparse1() [*], which guarantees to return a single st

Re: [R] Error generated by nlme::gnls

2022-07-23 Thread Rolf Turner
On Sat, 23 Jul 2022 21:00:25 -0400 Ben Tupper wrote: > Could this be related to a new if() behavior introduced in v4.2.0 ? > See the "SIGNIFICANT USER-VISIBLE CHANGES" for v4.2.0 in the NEWS > > https://cloud.r-project.org/doc/manuals/r-release/NEWS.html No. What's going on is much weirder t

Re: [R] Error generated by nlme::gnls

2022-07-23 Thread Ben Tupper
Could this be related to a new if() behavior introduced in v4.2.0 ? See the "SIGNIFICANT USER-VISIBLE CHANGES" for v4.2.0 in the NEWS https://cloud.r-project.org/doc/manuals/r-release/NEWS.html On Sat, Jul 23, 2022 at 6:26 PM Aaron Crowley wrote: > > Approximately 6 months ago, I successfully pe

Re: [R] Error in forest.meta : argument 3 matches multiple formal arguments

2022-05-26 Thread Luigi Marongiu
Thank you On Thu, May 26, 2022 at 12:38 PM Ivan Krylov wrote: > > В Thu, 26 May 2022 12:30:12 +0200 > Luigi Marongiu пишет: > > > > Error in forest.meta(m10, sortvar = TE, predict = TRUE, print.tau2 > > > = TRUE, : > > argument 3 matches multiple formal arguments > > Look at help(forest.meta)

Re: [R] Error when trying to install package tableHTML

2022-05-17 Thread Ivan Krylov
On Tue, 17 May 2022 11:43:33 -0500 Paul Bernal wrote: > Could this be due to network restrictions? Yes, definitely. > URL 'https://cran.r-project.org/CRAN_mirrors.csv': status was 'SSL > peer certificate or SSH remote key was not OK' Since most other people seem to be able to access this addre

Re: [R] Error with text analysis data

2022-04-13 Thread Neha gupta
gt;> NA values >> >> >> >> >> >> >> >> We agree on that. However, the error gives you no hint about which >> >> variables are causing the problem. If it did, then it could only tell >> >> about the first variable with the prob

Re: [R] Error with text analysis data

2022-04-13 Thread Ebert,Timothy Aaron
b...@ufl.edu>> Cc: Neha gupta mailto:neha.bologn...@gmail.com>>; r-help mailing list mailto:r-help@r-project.org>> Subject: Re: [R] Error with text analysis data [External Email] Constant columns can be the model when you do some subsetting or are exploring a new dataset. My ob

Re: [R] Error with text analysis data

2022-04-13 Thread Bill Dunlap
> *Sent:* Wednesday, April 13, 2022 12:23 PM > *To:* Ebert,Timothy Aaron > *Cc:* Neha gupta ; r-help mailing list < > r-help@r-project.org> > *Subject:* Re: [R] Error with text analysis data > > > > *[External Email]* > > Constant columns can be the model when

Re: [R] Error with text analysis data

2022-04-13 Thread Bill Dunlap
ike summarize(y) or mean(y) if that was the goal. > > Tim > > -Original Message- > From: R-help On Behalf Of Bill Dunlap > Sent: Wednesday, April 13, 2022 9:56 AM > To: Neha gupta > Cc: r-help mailing list > Subject: Re: [R] Error with text analysis data > &

Re: [R] Error with text analysis data

2022-04-13 Thread Bill Dunlap
This sounds like what I think is a bug in stats::model.matrix.default(): a numeric column with all identical entries is fine but a constant character or factor column is not. > d <- data.frame(y=1:5, sex=rep("Female",5)) > d$sexFactor <- factor(d$sex, levels=c("Male","Female")) > d$sexCode <- as.i

Re: [R] Error with text analysis data

2022-04-12 Thread Jim Lemon
Hi Neha, The error message is about not having _factors_ with two or more levels. Apart from using stringsAsFactors=FALSE (meaning that you probably won't get any factors in "d"), your sample data doesn't look like CSV format. Perhaps the lines have been truncated. You may get something with string

Re: [R] error with more 100 forked processes

2022-04-08 Thread Henrik Bengtsson
The reason why you hit the limit already around 100 workers, could be because you already have other connections open, e.g. file connections, capture.output(), etc. If you want to use *forked* processing with more than 125 workers using bare-bone R, you can use parallel::mclapply() and friends, be

Re: [R] error as in unused argument of a new package

2022-02-26 Thread Tariq Khasiri
I took care of the issue by simply updating an already installed package. Really appreciate for the valuable feedback from R community. Glad to have such kind guidelines. On Sat, Feb 26, 2022 at 1:57 AM Ivan Krylov wrote: > On Fri, 25 Feb 2022 16:14:05 -0600 > Tariq Khasiri wrote: > > > CS_neve

Re: [R] Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed

2022-01-28 Thread Avi Gross via R-help
ot;FALSE"> if (0) > print("TRUE") else print("FALSE")[1] "FALSE" This is why you are being told that for many purposes, the Boolean vector may work fine. But if you really want or need zero and one, that is a trivial transformation as shown. Feel f

Re: [R] Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed

2022-01-28 Thread Avi Gross via R-help
ot;FALSE"> if (0) > print("TRUE") else print("FALSE")[1] "FALSE" This is why you are being told that for many purposes, the Boolean vector may work fine. But if you really want or need zero and one, that is a trivial transformation as shown. Feel f

Re: [R] Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed

2022-01-27 Thread Avi Gross via R-help
Message- From: Ebert,Timothy Aaron To: Bert Gunter Cc: R-help Sent: Thu, Jan 27, 2022 2:27 pm Subject: Re: [R] Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed You did not claim it is faster, but if one is writing large programs or has huge quantities of data t

Re: [R] Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed

2022-01-26 Thread PIKAL Petr
t;- ifelse(test$operator == 'T13', 1, 0) the most probable source of the error is fc= fairness_check(explainer, protected = prot, privileged = privileged) so you should check explainer and privileged Cheers Petr From: javed khan Sent: We

Re: [R] Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed

2022-01-26 Thread Jeff Newmiller
Your error and your code don't match. Please spend some time to make a small reproducible example [1][2] when posting a question... you may even figure out your own answer before you send it out. [1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example [2] http

Re: [R] Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed

2022-01-26 Thread PIKAL Petr
do not know that they are used in you commands. Try to start fresh R session and try to inspect your environment with ls() Cheers Petr > -Original Message- > From: R-help On Behalf Of javed khan > Sent: Wednesday, January 26, 2022 3:05 PM > To: Ivan Krylov > Cc: R-help

Re: [R] Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed

2022-01-26 Thread PIKAL Petr
Hi Do not post in HTML, please. Try to show your real data - use str(test), or preferably dput(test). If test is big, use only fraction of it The problem must be probably in your data. x <- sample(1:20, 100, replace=T) fake <- paste("T", x, sep="") ifelse(fake=="T14", 1,0) [1] 0 0 0 0 0 0 0 0

Re: [R] Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed

2022-01-26 Thread Ivan Krylov
On Wed, 26 Jan 2022 14:47:16 +0100 javed khan wrote: > Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed > var <- ifelse(test$operator == 'T14', 1, 0) The error must be in a place different from your test$operator comparison. Have you tried traceback() to get the call stack

Re: [R] Error in using multiple correspondence analysis in R's FactoMineR

2022-01-09 Thread Rui Barradas
Hello, You have set quanti.sup to retinol (df[[2]]), not age. In the code it's quanti.sup=2. Without data it's difficult to say but try changing it. Hope this helps, Rui Barradas Às 08:15 de 09/01/22, Luigi Marongiu escreveu: Hello, I am trying to apply multiple correspondence analysis to

Re: [R] Error: if statement: missing value where TRUE/FALSE needed

2022-01-06 Thread Chuck Coleman via R-help
I added the sink() commands to capture the output I was seeing and saw no noticeable difference.  Granted, I didn't look too hard.  Still, the code ran for the usual time before the error.  Remove the print() commands and you'll probably the error in an entirely different iteration. Thanks for

Re: [R] Error: if statement: missing value where TRUE/FALSE needed

2022-01-06 Thread Duncan Murdoch
I've downloaded your code, and I'm seeing some strange results. When I source MetroTest.R, it creates a log file ending Error in if (xseg[w1] > ub & m == 1) olrmark[wi] = TRUE else if (xseg[w1] < : missing value where TRUE/FALSE needed as you saw. But when I comment out the sink() lines

Re: [R] Error: if statement: missing value where TRUE/FALSE needed

2022-01-06 Thread Chuck Coleman via R-help
I've created a git repository at  https://sourceforge.net/p/rhelp/code/ci/master/tree/.  I've used git before, so that's what I chose.  I had forgotten that sourceforge didn't have a download all files command.  I don't post files often. About the semantics of "crash":  Perhaps I'm showing my ag

Re: [R] Error: if statement: missing value where TRUE/FALSE needed

2022-01-05 Thread Duncan Murdoch
On 05/01/2022 2:09 p.m., Ivan Krylov wrote: On Wed, 5 Jan 2022 21:22:37 +0300 Ivan Krylov wrote: How exactly do you check for a missing argument? To answer my own question, the check is browser(expr = { is.na(w1) | is.na(ub) | is.na(m) | is.na(wi) | is.na(lb) }) I think that there are

Re: [R] Error: if statement: missing value where TRUE/FALSE needed

2022-01-05 Thread Ivan Krylov
On Wed, 5 Jan 2022 21:22:37 +0300 Ivan Krylov wrote: > How exactly do you check for a missing argument? To answer my own question, the check is >> browser(expr = { >> is.na(w1) | is.na(ub) | is.na(m) | is.na(wi) | is.na(lb) >> }) I think that there are NAs in xseg, which I don't see a check f

Re: [R] Error: if statement: missing value where TRUE/FALSE needed

2022-01-05 Thread Duncan Murdoch
On 05/01/2022 10:47 a.m., Chuck Coleman via R-help wrote: This is a rather complex error, for which I created  https://sourceforge.net/projects/rhelp/files/Metro/ to hold a minimal workspace with all files needed to make everything work.  I'm afraid I can't make a minimal example because the en

Re: [R] Error: if statement: missing value where TRUE/FALSE needed

2022-01-05 Thread Bill Dunlap
And how does one [easily] download those files from sourceforge? -Bill On Wed, Jan 5, 2022 at 10:15 AM Chuck Coleman via R-help < r-help@r-project.org> wrote: > This is a rather complex error, for which I created > https://sourceforge.net/projects/rhelp/files/Metro/ to hold a minimal > workspace

Re: [R] Error: if statement: missing value where TRUE/FALSE needed

2022-01-05 Thread Ivan Krylov
On Wed, 5 Jan 2022 15:47:07 + (UTC) Chuck Coleman via R-help wrote: > I then made the browser() statement conditional to stop execution if > a missing argument were encountered and detectspikes() happily passed > it and crashed. How exactly do you check for a missing argument? Could options

Re: [R] Error Awareness

2021-12-26 Thread David Winsemius
On 12/23/21 3:11 AM, Stephen H. Dawson, DSL via R-help wrote: Hi, I am thinking about awareness of errors when an R script runs. My concern is I have an error-free script. I run it for months on end without problems. Then, something changes somewhere causing an error. My wonderment is how

Re: [R] Error Awareness

2021-12-24 Thread Richard O'Keefe
You want to read this: http://adv-r.had.co.nz/Exceptions-Debugging.html It describes all the ways that R can report a problem and all the ways you can catch such a report while still in R. Let me heartily recommend the whole site, or better yet, the book https://www.amazon.com/dp/0815384572/ref=

Re: [R] Error Awareness

2021-12-24 Thread Avi Gross via R-help
. For now, I think I will step aside and focus my efforts elsewhere. -Original Message- From: Stephen H. Dawson, DSL Sent: Friday, December 24, 2021 9:49 AM To: Avi Gross ; 'r-help mailing list' Subject: Re: [R] Error Awareness Thank you, Avi. I appreciate your reply. I agre

Re: [R] Error Awareness

2021-12-24 Thread Stephen H. Dawson, DSL via R-help
. But if things do happen, then your code is not robust enough. -Original Message- From: R-help On Behalf Of Stephen H. Dawson, DSL via R-help Sent: Thursday, December 23, 2021 11:17 AM To: Bert Gunter Cc: R-help Subject: Re: [R] Error Awareness Hi Bert, Thanks for the reply. The use c

Re: [R] Error Awareness

2021-12-23 Thread Avi Gross via R-help
robust enough. -Original Message- From: R-help On Behalf Of Stephen H. Dawson, DSL via R-help Sent: Thursday, December 23, 2021 11:17 AM To: Bert Gunter Cc: R-help Subject: Re: [R] Error Awareness Hi Bert, Thanks for the reply. The use case I presented involves working code, not

Re: [R] Error Awareness

2021-12-23 Thread Jeff Newmiller
You still are not exhibiting signs of understanding Bert's response, and your question is vague, particularly to the extent that it could be pertinent to the R language (and therefore to the topic of this list). R itself just raises an error condition that custom tryCatch or default handling wil

Re: [R] Error Awareness

2021-12-23 Thread Stephen H. Dawson, DSL via R-help
Hi Bert, Thanks for the reply. The use case I presented involves working code, not diagnosing a script in development. The concern is running a script where something changes outside of the script, as I stated. An example of a change is a data source changing perhaps the columns in the dat

Re: [R] Error Awareness

2021-12-23 Thread Bert Gunter
?tryCatch This list is not meant for tutorials. A web search on "find errors in R code" brought up what appeared to be many resources to address your question. Please make use of such resources before posting here. Also, please read and follow the posting gui)de linked below to find out what sort

  1   2   3   4   5   6   7   8   9   10   >