2013-01-17 73 views
10

यह एक समस्या है, यह एक परेशानी से अधिक है, लेकिन क्या "ओवरफ्लो" लाइन को रोकने के लिए कोई तरीका है जो तब होता है जब आर में प्रलेखन संकलित होता है और एक रेखा बहुत लंबी होती है?आर प्रलेखन में लाइन ओवरफ्लो रोकें?

कुछ प्रलेखन R CMD Rd2pdf [options] files के साथ बनाया का एक स्निपेट: A snippet of documentation with text going outside the document margins (grey bars show the width of the pdf document)

मैं इस कहीं का उल्लेख नहीं मिल रहा है, और Rd2pdf के लिए ही विकल्प हैं: स्पॉइलर के लिए

Options: 
    -h, --help  print short help message and exit 
    -v, --version  print version info and exit 
     --batch  no interaction 
     --no-clean do not remove created temporary files 
     --no-preview do not preview generated PDF file 
     --encoding=enc use 'enc' as the default input encoding 
     --outputEncoding=outenc 
         use 'outenc' as the default output encoding 
     --os=NAME  use OS subdir 'NAME' (unix or windows) 
     --OS=NAME  the same as '--os' 
    -o, --output=FILE write output to FILE 
     --force  overwrite output file if it exists 
     --title=NAME use NAME as the title of the document 
     --no-index don't index output 
     --no-description don't typeset the description of a package 
     --internals typeset 'internal' documentation (usually skipped) 

उत्तर

0

क्षमा करें: एक समाधान पैकेजिंग रखरखाव के लिए में roxygen2 का उपयोग कर नहीं है। अपने विवरण को मैन्युअल रूप से क्यों बनाए रखें? आपको कई बदलावों की आवश्यकता नहीं है और यह बहुत बेहतर दिखता है ...

पैकेजों के विशाल बहुमत के लिए वास्तव में 'कोलेट' की आवश्यकता नहीं है। के कई बायोकॉन्डक्टर पैकेज, 'मैट्रिक्स' आदि की परंपरा का पालन क्यों न करें, 'AllClasses.R' फ़ाइल में एस 4 क्लास परिभाषाओं (संदर्भ कक्षाओं सहित) डालें और शायद 'AllGenerics.R' का उपयोग करें और बाकी के लिए , संयोजन आदेश कोई फर्क नहीं पड़ता।

+1

मुझे एक ही समस्या है। मैं मैन्युअल रूप से DESCRIPTION फ़ाइल को अद्यतन करने का प्रयास कर रहा हूं, लेकिन कोलेट फ़ील्ड अभी भी पीडीएफ आउटपुट पर बहती है। मैं सादा आर सीएमडी स्थापित कर रहा हूं [पैकेज नाम], और आर सीएमडी चेक [पैकेज नाम]। मैं फिर [पैकेज नाम] से पीडीएफ लेता हूं। फ़ोल्डर की जांच करें। – JAponte