Re: [R] insert hyperlink into svg graphic

2023-03-08 Thread Sigbert Klinke
Hi, maybe it would be a good idea to extend plotmath by a href command. Sigbert Am 08.03.23 um 22:46 schrieb Paul Murrell: Hi On 8/03/23 15:27, Rusty Travis wrote: On 3/7/23 13:12, Paul Murrell wrote: Hi I think the main issue here is that you are *drawing* text on the graphics device,

Re: [R] insert hyperlink into svg graphic

2023-03-08 Thread Paul Murrell
Hi On 8/03/23 15:27, Rusty Travis wrote: On 3/7/23 13:12, Paul Murrell wrote: Hi I think the main issue here is that you are *drawing* text on the graphics device, so I would only expect to see literal XML text output in the result. ''' Hope that helps Thank you for your consideration

[R] nth kludge

2023-03-08 Thread avi.e.gross
I see many are not thrilled with the concise but unintuitive way it is suggested you use with the new R pipe function. I am wondering if any has created one of a family of functions that might be more intuitive if less general. Some existing pipes simply allowed you to specify where in an

Re: [R] Default Generic function for: args(name, default = TRUE)

2023-03-08 Thread Leonard Mada via R-help
Dear Bert, Thank you for the idea. It works, although a little bit ugly. The original code generated an ugly warning as well. I have modified it slightly: is.function.generic = function(name) {     # TODO: is.function.generic();     # - this version is a little bit ugly;     # - S4:

Re: [R] Default Generic function for: args(name, default = TRUE)

2023-03-08 Thread Leonard Mada via R-help
Dear Gregg, Thank you for the fast response. I believe though that isGeneric works only for S4-functions: isGeneric("plot") # FALSE I still try to get it to work. Sincerely, Leonard On 3/8/2023 9:13 PM, Gregg Powell wrote: Yes, there is a way to check if a function is generic. You can

Re: [R] Default Generic function for: args(name, default = TRUE)

2023-03-08 Thread Bert Gunter
?.S3methods f <- function()(2) > length(.S3methods(f)) [1] 0 > length(.S3methods(print)) [1] 206 There may be better ways, but this is what came to my mind. -- Bert On Wed, Mar 8, 2023 at 11:09 AM Leonard Mada via R-help < r-help@r-project.org> wrote: > Dear R-Users, > > I want to change the

[R] Default Generic function for: args(name, default = TRUE)

2023-03-08 Thread Leonard Mada via R-help
Dear R-Users, I want to change the args() function to return by default the arguments of the default generic function: args = function(name, default = TRUE) {     # TODO: && is.function.generic();     if(default) {    fn = match.call()[[2]];    fn = paste0(as.character(fn),

Re: [R-es] reemplazar valores en texto según condiciones

2023-03-08 Thread juan manuel dias
muchas gracias carlos! El mar, 7 mar 2023 a las 14:11, Carlos Ortega () escribió: > Hola, > > Dentro de la librería "stringi" tienes la posibilidad de hacer lo que > quieres de forma vectorizada y super eficiente. > De esta forma..: > > library(stringi) > texto_nuevo <-