knitr का उपयोग कर मैं जानता हूँ कि इस php और अन्य भाषाओं के साथ किया जा सकता है, लेकिन सोच रहा था कि क्या निम्नलिखित पूरा किया जा सकता knitr का उपयोग कर:डालने भाग
चलो कहते हैं कि मैं एक Rmarkdown है (चलो .rmd) दो शीर्षक 1 वर्गों के साथ दस्तावेज़:
# This is the first heading for the first document
Lorem ipsum dolor sit amet
# This is the second heading for the first document
plot(object)
प्रश्न 1: अगर खुला एक और .rmd दस्तावेज़, मैं कैसे एक लिंक बना सकते हैं ताकि जब पार्स इस दस्तावेज़ अपनी सामग्री के साथ ही शुरू हो जाएगा पहले दस्तावेज़ से पूरी सामग्री। उदाहरण के लिए:
# This is the first heading for the second document Lorem ipsum dolor sit amet [command goes here to insert the first document]
परिणाम होगा:
# This is the first heading for the second document Lorem ipsum dolor sit amet # This is the first heading for the first document Lorem ipsum dolor sit amet # This is the second heading for the first document [plot shows up here]
प्रश्न 2: मुझे का चयन करें और दस्तावेज़ 2 में दस्तावेज़ 1 के केवल चयनित अंश डालने की अनुमति knitr हैं? उदाहरण के लिए, केवल 1 शीर्षक और इसके नीचे सामग्री, या केवल 2 और जिसका कथानक
आप बच्चे को दस्तावेजों के माध्यम से पहली बात कर सकते हैं। [यह] देखें (https://github.com/yihui/knitr/issues/268)। दूसरा एक ट्रिकियर है और इस बात पर निर्भर करता है कि आप कैसे परिभाषित करना चाहिए और क्या नहीं करना चाहिए। – Ramnath