Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • -set graphics off- makes exports not being executed

    The following (shortened) code is present in my .do file:
    HTML Code:
    xi: qui reghdfe `y' base  `int_pre' `int_post' $dmog  if `sample', cl($c) a($c $age) 
    est sto table_es2
    coefplot (table_es2, omitted keep(`int_pre' `int_post' base)), `opt_event' 
    graph export "./graphs`baseyr'/g`regname'_2.png", replace
    I have no issues with exporting. However, it bothers me that the graphs appear every time, because I have many graphs. I tried to use -set graphics off-, however this does not solve the problem. While graphs no longer appear, for some reason they are also not exported. The full code runs without obtaining errors.

  • #2
    Edit: The error seems to be on the Windows side. I am saving to Google Drive. If I delete the graphs, they do appear. However, If the graphs are already in the folder, their "date" does not update, but instead shows the old creation date.

    Comment

    Working...
    X