[R-es] Importar gráficos Word

2023-06-27 Thread Javier Gómez Gonzalez
Hola a todos. Quisiera saber cual es la mejor forma de insertar gráficos hechos con ggplot2 en Word. Ya sé que lo mejor es usar R-Markdown, pero todavía no he empezado con él. Lo que hago es guardar los gráficos con ggsave en formato png con una resolución de 600 y luego los inserto en un

Re: [ESS] Working with Roxygen2

2023-06-27 Thread Vikas Rawal via ESS-help
> > > and save it, ESS mode offers in menu ESS an entry Roxygen with first option > Generate/Update Template and keyboard shortcut C-c C-o C-o (in my version). > That has been here since _forever_. Invoking it adds this header above > > Oops. I did not look at the most obvious place!! and that

Re: [ESS] Working with Roxygen2

2023-06-27 Thread Dirk Eddelbuettel via ESS-help
On 28 June 2023 at 06:49, Vikas Rawal via ESS-help wrote: | I am trying to build my first R package, and am using Roxygen2 to document | the functions. I was wondering if there is anything that would provide a | boilerplate template? Maybe a yasnippet or something better? There is and AFAIK

[ESS] Working with Roxygen2

2023-06-27 Thread Vikas Rawal via ESS-help
Hi everyone. I am trying to build my first R package, and am using Roxygen2 to document the functions. I was wondering if there is anything that would provide a boilerplate template? Maybe a yasnippet or something better? Thanks, V. [[alternative HTML version deleted]]

Re: [R] Help with regex replacements

2023-06-27 Thread Chris Evans via R-help
Magic! tmp %>%   as_tibble() %>%   rename(Text = value) %>%   mutate(Text = str_replace_all(Text, fixed("."), "")) %>%   # filter(row_number() < 4) %>%   mutate(Text2 = gsub("((|/)[[:alnum:]]+)|(\\([[:alnum:]-]+\\))", "", Text)) Which (as you have already shown!) gave me this: # A

Re: [R] Help with regex replacements

2023-06-27 Thread Bert Gunter
OK, so you want parentheses, not "brackets" + I think I misinterpreted your specification, which I think is actually incomplete. Based on what I think you meant, how does this work: gsub("((|/)[[:alnum:]]+)|(\\([[:alnum:]-]+\\))", "",tmp$Text) [1] "Я досяг того, чого хотів" "Мені

Re: [R] Help with regex replacements

2023-06-27 Thread Bert Gunter
Does this do it for you (or get you closer): gsub("\\[.*\\]|[] |/ ","",tmp$Text) [1] "Я досяг того, чого хотів" [2] "Мені вдалося\nзробити бажане" [3] "Я досяг (досягла) того, чого хотів (хотіла)" [4] "Я\nдосяг(-ла) речей, яких хотілося досягти" [5] "Я досяг/ла того, чого\nхотів/ла" [6] "Я

Re: [R] Help with regex replacements

2023-06-27 Thread Chris Evans via R-help
Thanks Avi (I am a keen follower or your, and other stalwart helpers here). On 27/06/2023 18:27, avi.e.gr...@gmail.com wrote: Chris, Consider breaking up your task into multiple passes. Sorry, I could have explained more of what I had tried.  I never know how long to make things here. I

Re: [R] Help with regex replacements

2023-06-27 Thread avi.e.gross
Chris, Consider breaking up your task into multiple passes. And do them in whatever order preserves what you need. First, are you talking about brackets as in square brackets, or as in your example, parentheses? If you are sure you have no nested brackets, your requirement seems to be that

[R] Help with regex replacements

2023-06-27 Thread Chris Evans via R-help
I am sure this is easy for people who are good at regexps but I'm failing with it.  The situation is that I have hundreds of lines of Ukrainian translations of some English. They contain things like this: 1"Я досяг того, чого хотів"2"Мені вдалося зробити бажане"3"Я досяг (досягла) того, чого

Re: [R] 32bit application

2023-06-27 Thread Ivan Krylov
В Tue, 27 Jun 2023 11:03:23 +0530 Venky Vulpine пишет: > Is there a way to build a 32bit R setup or is there any solution for > the people who definitely need 32bit R on windows. While 32-bit builds of R are not supported on Windows, they might still work (and they do work on other platforms).

[R] 32bit application

2023-06-27 Thread Venky Vulpine
Hi Team, It seems from 4.2.3, R setup is not having a 32bit package as like the previous version. Is there a way to build a 32bit R setup or is there any solution for the people who definitely need 32bit R on windows. Please let me know. Thanks, Venkatesh U [[alternative HTML version