在試圖爲this question尋找解決方案時,我發現自己試圖編寫有效的Rd標記。我想要的是添加一個名爲Raw Function Code的部分,並將該函數的代碼放在它下面。我已經寫一個腳本來修改Rd文件實現在這方面有限的成功,包括 \section{Raw Function Code}{\code{
# some piece of R script will eventally provid
請考慮下面的org-babel中的perl片段,它使用<STDIN>。 ** Ans 2
#+begin_src perl :results output
use Math::Trig;
$rad = <STDIN>;
$circumference = 2*pi*$rad;
print "Circumference of circle is $ci