[R] De-serialization vulnerability?

2024-05-01 Thread Howard, Tim G (DEC) via R-help
All, There seems to be a hullaboo about a vulnerability in R when deserializing untrusted data: https://hiddenlayer.com/research/r-bitrary-code-execution https://nvd.nist.gov/vuln/detail/CVE-2024-27322 https://www.kb.cert.org/vuls/id/238194 Apparently a fix was made for R 4.4.0, but I see

Re: [R] Missing shapes in legend with scale_shape_manual

2023-10-31 Thread Howard, Tim G (DEC) via R-help
I believe the missing shapes are because you had set alpha=0 for the last geom point. I expect there are better ways, but one way to handle it would be to avoid the filtering, adding columns with med and exercise status, like the following: # setup with data provided Date <- c('2023-10-17',

Re: [R] win110 + R 4.3.0 dowload only when method = "wininet"

2023-05-12 Thread Howard, Tim G (DEC) via R-help
Also note that with R version 4.2.1 and later, there's another change for computers within many corporate firewall systems (that monitor network traffic). The result is that in the default settings R can't connect out to https connections (and thus can't install or update packages). You just

Re: [R] Regex Split?

2023-05-05 Thread Howard, Tim G (DEC) via R-help
If you only want the character strings, this seems a little simpler: > strsplit("a bc,def, adef ,,gh", "[ ,]+", perl=T) [[1]] [1] "a""bc" "def" "adef" "gh" If you need delimeters (the commas) you could then add them back in again afterwards. Tim --

Re: [R] R version 4.2.1 install.packages does not work with IE proxy setting

2022-10-06 Thread Howard, Tim G (DEC) via R-help
Petr, You also might want to check out the bug reported here: https://bugs.r-project.org/show_bug.cgi?id=18379 it was fixed and the last two comments discuss how to handle it in Windows: you add a new User Environment Variable: R_LIBCURL_SSL_REVOKE_BEST_EFFORT and set it to TRUE This fix is

Re: [R] project path in Rmd (Ivan Calandra)

2020-04-02 Thread Howard, Tim G (DEC) via R-help
You also should be able to reference locations from the 'root' of your project using the here() package. https://here.r-lib.org/ Best, Tim Howard > Date: Thu, 2 Apr 2020 10:21:47 +0100 > From: Rui Barradas > To: Ivan Calandra > Cc: "r-help@r-project.org" > Subject: Re: [R] project

Re: [R] substr gives empty output

2018-01-22 Thread Howard, Tim G (DEC)
In y <- substr(x, i, 1) your third integer needs to be the location not the number of digits, so change it to y <- substr(x, i, i) and you should get what you want. Cheers, Tim > Date: Sun, 21 Jan 2018 10:50:31 -0500 > From: Ek Esawi > To: Luigi Marongiu