conroylau / lpinfer

lpinfer: An R Package for Inference in Linear Programs
GNU General Public License v3.0
3 stars 5 forks source link

Remove the progress bar after the procedure has been run #33

Closed a-torgovitsky closed 4 years ago

a-torgovitsky commented 4 years ago

Same example code as in #30

If I do

source("run.R")

Then I am left with:

source("run.R")
  |====================| 100%

i.e. the progress bar doesn't get removed.

If I issue the main command from run.R directly into Rstudio, the progress bar disappears if and only if I do not assign the return from dkqs to an object. My guess is that the automatic printing when not assigning is overwriting the output. We want to overwrite it no matter what though.

conroylau commented 4 years ago

Done! I have added an additional code so that the progress bar disappears if I run source("run.R") or assign dkqs to an object.