similar to: "if" function in pure R?

Displaying 20 results from an estimated 7000 matches similar to: ""if" function in pure R?"

2019 May 27
1
"if" function in pure R?
Thanks a lot Jiefei, I had thought of defining a binary operator (inspired by pipes) or simply using an additional condition in the if() calls [e.g. if(foo & fn(bar)) doSomeThing; with fn(bar) returning a logical], but both are workaround that I do not find as elegant as a proper control-flow construct. Thus two questions remain: - is it possible to create a control-flow construct in pure R?
2019 May 27
0
"if" function in pure R?
Hi Alexandre, I'm not an R expert so this is only my personal thought: I don't think you can achieve what you want exactly. A possible solution would be defining a binary operator %*%, where you can replace the asterisk with any function name you want. The function %*% is special since it has two arguments, left operand and right operand respectively. You then can call the `substitute`
2016 Sep 05
1
mget call can trigger C stack usage error
Hi all, not sure if you will call this a bug or something else but the following silly call trigger a low level error: foo <- list(x=1) class(foo) <- "new" print.new <- function(x, ...) print(mget(names(formals()))) foo > Error: C stack usage 7969412 is too close to the limit -- Alexandre Courtiol http://sites.google.com/site/alexandrecourtiol/home *"Science is
2020 Nov 01
2
vignettes present in 2 folders or won't work
Dear all, I am struggling with an issue related to static vignettes: they work, but only when present in double in the tarball -- in the folder inst/doc and vignettes; see below for details. Details: I am pre-compiling heavy vignettes thanks to the vignette builder R.rsp. So basically, I have PDF files which I want the package to use as Vignettes. For this, I have the following in my
2020 Nov 01
2
vignettes present in 2 folders or won't work
Noted Duncan and TRUE... I cannot do more immediately unfortunately, that is always the issue of asking a last minute panic attack question before teaching a course involving the package... I do have /doc in my .Rbuildignore for reasons I can no longer remember... I will dig and create a MRE/reprex. The students will download heavy packages, but they probably won't notice. *Apologies* In the
2023 Jun 12
2
Problem with R, staged installation for packages, and samba share
Update: On Mon, 12 Jun 2023 at 17:40, I?aki Ucar <iucar at fedoraproject.org> wrote: > > Unfortunately, I cannot reproduce the issue here. :( I mounted a smb > share, created a symlink from ~/R, and installed dplyr without any > issue (apart from the installation process taking ages). Fortunately, > this rules out our binary R package as responsible for the issue you > are
2023 Jun 14
1
Problem with R, staged installation for packages, and samba share
Hi all, The admin from our setup created a script that should help you reproduce our problem (see below). Of course, it may be that it is not an RPM-related issue, but we hope you will have an idea on how to solve the issue all the same. # 1. Prepare VM and set up Samba - install Fedora 38 Workstation (Fedora-Workstation-Live-x86_64-38-1.6.iso). Username: 'user' - disable SELinux (edit
2023 Jun 14
1
Problem with R, staged installation for packages, and samba share
Thanks again, unfortunately it still fails when mounting the drive on a windows machine (even using nolease) on our end. We will prepare a fully reproducible example using a virtual machine. This could take us a day or two. ++ On Tue, 13 Jun 2023 at 11:05, I?aki Ucar <iucar at fedoraproject.org> wrote: > On Tue, 13 Jun 2023 at 10:35, Alexandre Courtiol > <alexandre.courtiol at
2023 Jun 13
1
Problem with R, staged installation for packages, and samba share
On Tue, 13 Jun 2023 at 10:35, Alexandre Courtiol <alexandre.courtiol at gmail.com> wrote: > > Thanks a lot for persevering. > > I?aki, that sounds very promising, could you please tell me what software your SMB share is running on (i.e. what does the server side look like?), and if it's Samba, then what version did you use? There was a Windows 10 machine around, so I created
2024 Mar 27
1
paths capability FALSE on devel?
? Wed, 27 Mar 2024 11:28:17 +0100 Alexandre Courtiol <alexandre.courtiol at gmail.com> ?????: > after installing R-devel the output of > grDevices::dev.capabilities()$paths is FALSE, while it is TRUE for R > 4.3.3 Your system must be missing Cairo development headers, making x11() fall back to type = 'Xlib': $ R-devel -q -s -e 'x11();
2024 Mar 27
2
paths capability FALSE on devel?
Hi all, I don't know if it is a local issue on my hands or not, but after installing R-devel the output of grDevices::dev.capabilities()$paths is FALSE, while it is TRUE for R 4.3.3. Relatedly, I have issues with plotting paths on devel. At this stage, I simply would like to know if others running R devel and R 4.3.3 can replicate this behaviour and if there are obvious reasons why the
2023 Jun 12
1
Problem with R, staged installation for packages, and samba share
Dear Fedora-R enthusiasts, We are experiencing some issues with the binary releases of R 4.3 for Fedora 37 & 38 when running it on our infrastructure. The issue is that packages won't install, unless the (default) staged installation process for packages is switched off (--no-staged-install). It seems to be related to the fact that we are storing R libraries on a drive mounted via
2017 May 02
0
potential bug in simulate.lm when gaussian(link != "identity")
Dear all, I think that there is a bug in the function simulate.lm() when called upon a glm fitted with gaussian family with a link other than identity. The variance of the simulated response is clearly off and an inspection to the code of simulate.lm reveals that it is because the variance is divided by the model weights (precisely, not the prior ones), which is not documented. Can somebody file
2017 May 09
0
Bug simulate.lm() --> needs credential to report it
Dear R developers, I did not get any reply concerning my email from last week concerning the bug I found in stats::simulate.lm(). The bug shows up when called upon a GLM with family gaussian(). I am confident it is a genuine bug related to a mix-up between weights and prior weights that only impacts the gaussian family (other families have their own simulate functions defined elsewhere). I
2019 Jun 18
2
Fast way to call an R function from C++?
For reference, your benchmark using UNWIND_PROTECT: > system.time(test(testFunc, evn$x)) user system elapsed 0.331 0.000 0.331 > system.time(test(C_test1, testFunc, evn$x)) user system elapsed 2.029 0.000 2.036 > system.time(test(C_test2, expr, evn)) user system elapsed 2.307 0.000 2.313 > system.time(test(C_test3, testFunc, evn$x)) user system
2011 Mar 23
2
Problems Extension with a Call In on Asterisk 1.6
Hi I request your help because i don't have actually a solution at my problems. I have a Asterisk Server in 1.6 Connected at a SIP Provider This provider supply me 2 numbers: 003318364xxxx (official number) 081169xxxx (Nddi Number) When i receive a call on the 081169xxxx, he don't use the extension. He use the 003318364xxxx extension. SIP Debug: <--- SIP read from
2011 Apr 03
1
Asterisk 1.6 => No sound/voice when i redirect the call
Hi i use this into my extension : exten => _00339xxxxxxxx,1,Set(foo=${SIP_HEADER(To)}) exten => _00339xxxxxxxx,2,Set(cut1=${CUT(foo,:,2)}) exten => _00339xxxxxxxx,3,Set(CLI=${CUT(cut1,>,1)}) exten => _00339xxxxxxxx,4,Set(toexten=${CUT(CLI,@,1)}) exten => _00339xxxxxxxx,5,Noop(ORIGINAL NUMBER : [ ${toexten} ]) exten =>
2009 Feb 24
3
invalid comparison in numeric sequence (PR#13551)
Full_Name: alex Version: 2.8.1 OS: Ubuntu / MacOSX Submission from: (NULL) (162.38.183.51) > 0.6==0.6 [1] TRUE > seq(0,1,0.1)==0.4 [1] FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE > seq(0,1,0.1)==0.6 [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE > seq(0,1,0.1)==0.8 [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE
2024 Mar 27
1
paths capability FALSE on devel?
On 27/03/2024 10:28, Alexandre Courtiol wrote: > Hi all, > > I don't know if it is a local issue on my hands or not, but after > installing R-devel the output of grDevices::dev.capabilities()$paths is > FALSE, while it is TRUE for R 4.3.3. > Relatedly, I have issues with plotting paths on devel. > > At this stage, I simply would like to know if others running R devel
2020 Nov 01
3
vignettes present in 2 folders or won't work
I take Duncan's point but would second the motion to have WRE clarify how static vignettes are supposed to work; it's a topic I am repeatedly confused about despite being an experienced package maintainer. If knowledgeable outsiders compiled a documentation patch would it be likely to be considered ...?? On 11/1/20 2:29 PM, Duncan Murdoch wrote: > On 01/11/2020 1:02 p.m., Alexandre