Re: [R] refresh.console() function?
Perhaps you mean https://search.r-project.org/R/refmans/utils/html/flush.console.html Best, Deepayan On Wed, 13 Mar, 2024, 8:59 pm Christofer Bogaso, < bogaso.christo...@gmail.com> wrote: > Hi, > > I run a lengthy for loop and I want to display loop status for each > step in my loop. > > I previously heard of a R function namely refresh.console() which > would print the status within the loop as it progresses. > > However I see this > > > help.search("refresh.console") > > No vignettes or demos or help files found with alias or concept or > > title matching ‘refresh.console’ using regular expression matching. > > Could you please help me find the correct function name? > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[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 the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] refresh.console() function?
On Wed, 13 Mar 2024, Christofer Bogaso writes: > Hi, > > I run a lengthy for loop and I want to display loop status for each > step in my loop. > > I previously heard of a R function namely refresh.console() which > would print the status within the loop as it progresses. > > However I see this > >> help.search("refresh.console") > > No vignettes or demos or help files found with alias or concept or > > title matching ‘refresh.console’ using regular expression matching. > > Could you please help me find the correct function name? > ?flush.console ... but you'll need to print/message/cat/... explicitly in the loop, or the output won't be shown. [Also, options(warn=1) might be useful.] -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] refresh.console() function?
Hi, I run a lengthy for loop and I want to display loop status for each step in my loop. I previously heard of a R function namely refresh.console() which would print the status within the loop as it progresses. However I see this > help.search("refresh.console") No vignettes or demos or help files found with alias or concept or title matching ‘refresh.console’ using regular expression matching. Could you please help me find the correct function name? __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Generating mouse click and hold using R
No idea if the package below would work. This package is MSWindows only. Since this was readily found using a search engine, you should have mentioned that you already found this and why it didn't work for you when you posted. https://cran.r-project.org/web/packages/KeyboardSimulator/readme/README.html https://stat.ethz.ch/R-manual/R-devel/library/base/html/Sys.sleep.html On March 13, 2024 6:31:59 AM PDT, Christofer Bogaso wrote: >Hi, > >I wonder if R can provide any functionality where I need simulate >mouse click in windows machine at certain coordinate on screen and >hold the click for certain seconds e.g. for 5 seconds > >Really appreciate if I can have someone suggestion how above can be >simulated with R > >Thanks and regards, > >__ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. -- Sent from my phone. Please excuse my brevity. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Generating mouse click and hold using R
В Wed, 13 Mar 2024 19:01:59 +0530 Christofer Bogaso пишет: > I need simulate mouse click in windows machine at certain coordinate > on screen and hold the click for certain seconds e.g. for 5 seconds There's no interface for this in base R. It's always possible to write some Windows API code to do that and call it from R using .Call() (SendInput() is relatively easy to use [*]), but that takes effort and knowledge of C. What I suggest to do instead is to write an AutoHotKey script, making use of the Click function [**] and taking arguments from the command line [***], and then launch that script using system2(). AutoHotKey is free software (GPLv2), designed specifically to automate other programs and should be much easier to use correctly than C. -- Best regards, Ivan [*] https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendinput [**] https://www.autohotkey.com/docs/v2/lib/Click.htm [***] https://www.autohotkey.com/docs/v2/Scripts.htm#cmd __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Generating mouse click and hold using R
Hi, I wonder if R can provide any functionality where I need simulate mouse click in windows machine at certain coordinate on screen and hold the click for certain seconds e.g. for 5 seconds Really appreciate if I can have someone suggestion how above can be simulated with R Thanks and regards, __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.