Hi
Could not make this example work, maybe because its missing
*rPercentComplete pointing at percentComplete. The above mentioned link has
been moved? to:
https://gist.github.com/KRD1/2503984
however, this worked for me:
*R side:*
/pBar <- txtProgressBar( min = 0, max = 100, style = 3)
blub<-.C
Erik Wright wrote:
>
> Hi Charlie,
>
> Thanks, I got it working by looking at your myRunIfConcise function.
>
> SEXP changePercent(SEXP pBar)
> {
> int *rPercentComplete;
> SEXP utilsPackage, percentComplete;
> PROTECT(utilsPackage = eval(lang2(install("getNamespace"),
> Scal
Hi Charlie,
Thanks, I got it working by looking at your myRunIfConcise function.
SEXP changePercent(SEXP pBar)
{
int *rPercentComplete;
SEXP utilsPackage, percentComplete;
PROTECT(utilsPackage = eval(lang2(install("getNamespace"),
ScalarString(mkChar("utils"))), R_GlobalE
Erik Wright wrote:
>
> Hi Charlie,
>
> I like your idea of updating an R progress bar from C, but I don't at all
> understand how to call txtProgressBar from C. I have looked at Writing R
> Extensions and it is equally confusing. Any help would be appreciated.
>
> Thanks!,
> Erik
>
Hi Erik
Hi Charlie,
I like your idea of updating an R progress bar from C, but I don't at all
understand how to call txtProgressBar from C. I have looked at Writing R
Extensions and it is equally confusing. Any help would be appreciated.
Thanks!,
Erik
On Apr 5, 2010, at 10:29 AM, Sharpie wrote:
>
> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Erik Wright
> Sent: Monday, April 05, 2010 7:59 AM
> To: r-help@r-project.org
> Subject: [R] Rprintf not updating
>
> Hello all,
>
> I am using
Erik Wright wrote:
>
> Hello all,
>
> I am using Rprintf in a C for loop (from .Call) to print a progress
> indicator showing the current percent complete. The loop I am doing is an
> time intensive call to another function. I have noticed that Rprintf does
> not print to the R-window until th
Hello all,
I am using Rprintf in a C for loop (from .Call) to print a progress indicator
showing the current percent complete. The loop I am doing is an time intensive
call to another function. I have noticed that Rprintf does not print to the
R-window until the entire loop has been completed.
8 matches
Mail list logo