-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Register as knitr engine #10
Comments
Never thought of that. Sounds VERY interesting. OK - looking onto this: The problem is the return of an image. Here one can find the answer. https://stackoverflow.com/a/54700702/632423 I put an Rmd file as a gist which works as expected. Any suggestions to improve the knit function? I would like to include this in the next release if it is OK with you (obviously with attribution). |
Oh - I am using the plantuml package version from GitHub (master branch). |
Yours looks heaps better than what I could cobble together; I'm not really an R expert. I found that SO answer, but never got where you got -- AAMOF, I asked there in a comment whether I could have the in-line image shown, and got "nope, not possible" OK with me to include it 😆 I'd be super happy, attribution or not. I would propose one, maybe two changes:
my current implementation was:
|
Ooh -- I also have
because I'm bringing colleagues into the RStudio fold who approach RMarkdown with some trepidation, so anything I can make "just work" for them is a huge help. |
Concerning your last comment: This should be done automatically when Inline image: Yes - that is not possible (I have to trust them on that). I guess you wanted to have the image in the knitted document, and Good points.
It seems to be a convention in the open space of these options, to preface it with the name of the module. So I would prefer, to leave it as it is, as the other knitting engines follow the same convention.
Good point. I will add a I will upload the new version to the dev branch later today. |
That is correct, this is my main goal.
Understood.
Awesome! |
How can I pull this dev branch into my notebook? |
OK - it is in the You can install the
|
OK - pushed it to
I will close this issue - please re-open it if you have problems or file a new issue if you have suggestions for improvements. Fixes 6599cc8 |
Awesome. How will I know the version has made it into a release? |
You can always run the install_github() which will either update t o a new version, or te lol you that no new version is there. Anyway - I plan on releasing it to CRAN, possibly some time next week. |
Wait -- if it's on master, a regular |
Exactly.
Von meinem iPad gesendet
… Am 17.06.2020 um 21:41 schrieb Emiliano Heyns ***@***.***>:
Wait -- if it's on master, a regular install_github (or in my case, p_load_gh from pacman) should suffice, right?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I have updated from master, but with this:
I just get the text displayed |
Could you try to add “plantuml.format = ‘png’” ?
Von meinem iPhone gesendet
… Am 17.06.2020 um 23:22 schrieb Emiliano Heyns ***@***.***>:
I have updated from master, but with this:
{plantuml mapping-flow, plantuml.path="images"}
@startuml
left to right direction
scale 2.0
object "bron fysiek" as bron {
Het fysieke datamodel
van CATS/VLS/Alluris
}
object "bron UI/logisch" as ui {
Het logische datamodel
}
note bottom {
Dit is gelijk aan wat de gui van het bronsysteem laat zien.
FB kan hiermee de juistheid van queries toetsen.
}
object "logica herstellen" as logic #lightgreen {
het fysieke datamodel
terugbrengen naar het model
van de gebruikersinterface
}
object "mapping naar CDM" as map #lightgreen {
vertalen van bron-entiteiten
naar canonieke entiteiten
}
object "CDM" as cdm {
Het canonieke datamodel
}
bron --> logic
logic--> ui
ui --> map
map --> cdm
@enduml
I just get the text displayed
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Works for me as given:
produces the following image |
I installed from master using
before. |
Still the same; I installed using
(I don't usually have if I run the following before my plantuml chunk (which replaces the registered engine) it does work:
|
Could you
|
sessionInfo():
the document in the gist knits to an HTML file with |
OK - try to add
It seems, that your document has somewhere set the default value of |
It looks like you're right, adding Super weird, but not caused by the the plantuml engine it seems. |
If you post your document (you can send it privately, or trim it down), I could take a look at it. By the way: using |
Do you probably have |
I did have I don't see any structural difference between your gist and this: https://gist.github.com/ad22113f885dadd181f9467669e0d458 , but mine just displays text. |
I missed it for at least 30 minutes - you are not registering any knit engine for plantuml! Just add
to the setup chunk. You Donn't even have to load the package plantuml. |
Oh I thought packages would register the engine itself as part of the library init. Works! |
No - I could do that, but that would make knitr an imported package, and not only a suggested.
… On 18 Jun 2020, at 13:05, Emiliano Heyns ***@***.***> wrote:
Oh I thought packages would register the engine itself as part of the library init. Works!
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub <#10 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADW6BAT3KPJLPIB43XBYJLRXHYHTANCNFSM4N7YRA7A>.
--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)
Orcid ID: 0000-0002-7490-0066
Department of Evolutionary Biology and Environmental Studies
University of Zürich
Office Y34-J-74
Winterthurerstrasse 190
8075 Zürich
Switzerland
Office: +41 (0)44 635 47 64
Cell: +41 (0)78 630 66 57
email: Rainer.Krug@uzh.ch
Rainer@krugs.de
Skype: RMkrug
PGP: 0x0F52F982
|
I've tried registering plantuml as a knitr engine using
with
vector=TRUE
it seems to work but I see a warning "don't know how to handle 'plantuml' engine output". Withvector=FALSE
I'm getting no output.The text was updated successfully, but these errors were encountered: