You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to produce RTF reprexes / prexes on R 4.1 with highlight installed from homebrew. I'm running macOS 11.4. The behavior is the same on the development and CRAN versions of reprex().
With both reprex_rtf() and prex_rtf(), I get the following error:
The various reprex random-name-output files are produced as expected in the working directory. After a failed prex_rtf() or reprex_rtf() call, say one that produces files named awful-dog_reprex.R etc, at the terminal I can do
This produces the expected result (i.e. a rendered RTF of the R file in the clipboard, which I can paste into Keynote). There's no additional output (warning, errors, messages, etc) from highlight that would indicate any problems.
I saw #331 reported something similar but that was on Windows rather than macOS and initially Sys.which() wasn't working in that case, whereas here it is. However, the problem does seems to be happening in the same functions that were changed as a result of #345, which fixed #331. So maybe some additional issue was introduced?
I cloned the repo and recompiled the package so that reprex_highlight() would expose a little more of what was happening just by commenting out its abort() condition.
I'm trying to produce RTF reprexes / prexes on R 4.1 with
highlight
installed from homebrew. I'm running macOS 11.4. The behavior is the same on the development and CRAN versions ofreprex()
.With both
reprex_rtf()
andprex_rtf()
, I get the following error:So the problem is with the
reprex_highlight()
call.I have the
highlight
utility installed, and R can see it:The various reprex random-name-output files are produced as expected in the working directory. After a failed
prex_rtf()
orreprex_rtf()
call, say one that produces files namedawful-dog_reprex.R
etc, at the terminal I can doThis produces the expected result (i.e. a rendered RTF of the R file in the clipboard, which I can paste into Keynote). There's no additional output (warning, errors, messages, etc) from
highlight
that would indicate any problems.I saw #331 reported something similar but that was on Windows rather than macOS and initially
Sys.which()
wasn't working in that case, whereas here it is. However, the problem does seems to be happening in the same functions that were changed as a result of #345, which fixed #331. So maybe some additional issue was introduced?I cloned the repo and recompiled the package so that
reprex_highlight()
would expose a little more of what was happening just by commenting out itsabort()
condition.Running the reprex again produced this traceback. It looks like can't open the
reprex_file
it wants:The text was updated successfully, but these errors were encountered: