标题无法在我的R Markdown文件中工作
我最近完成了R笔记本,并一旦决定编织Markdown文件就注意到了一些事情。没有一个标题或项目符号可以工作!由于我有Mac,我必须安装Xquartz才能完成编织Markdown文件。这是正常的事情还是我可以解决这个问题?
I recently finished my R notebook, and noticed something once I decided to knit the markdown file. None of the headings or bullet points were working! I had to install XQuartz to finish knitting the markdown file since I have a mac. Is this something that's normal or can I fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我还没有看到您的RmarkDown,但我怀疑您需要在每个标题上方添加一条空白。例如,在列表之后(或任何其他结构)之后立即将标题放置有时会导致问题:
但是,在每个标题之前添加空白行通常可以解决问题:
I haven't seen your rmarkdown, but I suspect that you need to add a blank line above each heading. For example, putting a heading right after a list (or any other structure) sometimes results in problems:
However, adding a blank line before each heading usually fixes the problem:
您的标题不起作用,因为您没有在“#”和下一个角色之间留出空间。
这是行不通的:
相反,这样做:
Your headings do not work because you didn't leave a space between "#" and the next character.
This will not work:
Instead, do this: