Closed kvenkita closed 1 year ago
Can you send me an example? I suspect the first code chunk might fail, but a subsequent code chunk could work.
From: Kailas Venkitasubramanian @.> Sent: Saturday, October 23, 2021 11:24:41 AM To: Hemken/Statamarkdown @.> Cc: Subscribed @.***> Subject: [Hemken/Statamarkdown] Loops and Collectcode (Issue #23)
Should loops in stata code be strictly contained within a code chunk in the rmd? In other words, will collectcode=True option allow parts of a loop to be split in multiple chunks?
Context: I split parts of the loop in different chunks and it failed.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Hemken/Statamarkdown/issues/23, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACYBMEYIBU4QHLOUJX5LQNLUILOUTANCNFSM5GSNVSOQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I don't think there is any way to do this. If you try to place a partial loop in a profile.do, Stata finishes the profile.do with an error and tells you it came to an unexpected end of file. Then the second chunk also gives you an error on " } ".
Should loops in stata code be strictly contained within a code chunk in the rmd? In other words, will collectcode=True option allow parts of a loop to be split in multiple chunks?
Context: I split parts of the loop in different chunks and it failed.