Hemken / Statamarkdown

Functions to write Stata documentation with knitr
Other
59 stars 11 forks source link

`oprofile` not found #1

Closed AsyaKarpova closed 5 years ago

AsyaKarpova commented 5 years ago

I try to compile Rmd file with stata chunks with option eval=FALSE. This results in error with message oprofile not found. I use StataMP 13

Hemken commented 5 years ago

Can you send me an example document that produces this error?

AsyaKarpova commented 5 years ago

There is an example.

By now I have found that the error with message oprofile not found arrises when I compile the file from my bookdown project. But if I do it from another folder, I can successfully compile the Rmd file with eval=TRUE, using Stata-64. With Stata-32 file is compiled with eval=FALSE (with eval=TRUE I have to close Stata manually and the stata chunk does not perform).

Hemken commented 5 years ago

I can look into the bookdown problem.

can you tell me the results of

packageVersion("Statamarkdown") packageVersion("knitr")

find_stata() ought to be able to find the executable with the path shown in your example. Both executables are on the same computer?

Have you run this Stata code in both versions of Stata manually?

AsyaKarpova commented 5 years ago

packageVersion("Statamarkdown") 0.3.4 packageVersion("knitr") 1.20

Yes, both executables are on the same computer. I have changed the path to use Stata-64.

If I run the code in both versions of Stata manually, it performs without problems.

Hemken commented 5 years ago

I have not been able to reproduce this problem.

I am using Statamarkdown 3.5, knitr 1.22, bookdown 0.9 .

From: Asya Karpova [mailto:notifications@github.com] Sent: Friday, March 22, 2019 2:33 PM To: Hemken/Statamarkdown Cc: Doug Hemken; Comment Subject: Re: [Hemken/Statamarkdown] oprofile not found (#1)

packageVersion("Statamarkdown") 0.3.4 packageVersion("knitr") 1.20

Yes, both executables are on the same computer. I have changed the path to use Stata-64.

If I run the code in both versions of Stata manually, it performs without problems.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Hemken/Statamarkdown/issues/1#issuecomment-475752846, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALAWE1I6dKlpLa1fTnUdZibDOVq315fmks5vZTAHgaJpZM4cDJg4.

Hemken commented 5 years ago

What YAML are you using?

From: Asya Karpova [mailto:notifications@github.com] Sent: Friday, March 22, 2019 2:33 PM To: Hemken/Statamarkdown Cc: Doug Hemken; Comment Subject: Re: [Hemken/Statamarkdown] oprofile not found (#1)

packageVersion("Statamarkdown") 0.3.4 packageVersion("knitr") 1.20

Yes, both executables are on the same computer. I have changed the path to use Stata-64.

If I run the code in both versions of Stata manually, it performs without problems.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Hemken/Statamarkdown/issues/1#issuecomment-475752846, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALAWE1I6dKlpLa1fTnUdZibDOVq315fmks5vZTAHgaJpZM4cDJg4.

Hemken commented 5 years ago

Conflict likely due to having two Stata versions. No response to last questions ....