代码之家  ›  专栏  ›  技术社区  ›  Alex

在R中构建网站时,如何避免下标越界?

  •  -4
  • Alex  · 技术社区  · 7 年前

    所以我在R有一个项目,这是一个统计数学笔记本。我一直在添加到_网站的链接。整个学期的yml。这个周末,我更新了R,出于某种原因,每次我编织。在笔记本中,我得到了以下错误。

    配置$output[[“html\u document”]]中出错:下标超出界限 通话:->-&燃气轮机;patch\u html\u document\u选项 执行已暂停

    已退出,状态为1。

    当我尝试构建整个网站时,也会出现同样的错误。我还试着编织。RMD之外的笔记本,这是成功的。我到处都在搜索类似的问题,但我真的找不到任何相关的东西(或者我的谷歌搜索没有那么好)。无论如何,能有我的朋友会很好。RMD在本笔记本中编织成功。我还卸载了Rstudio并重新安装了它,但这也不起作用。 这是我的网站。yml(尽管我不知道这会有什么帮助)。

    name: "math-325-notebook"
    navbar:
      title: "Math 325 Notebook"
      left:
        - text: "Table of Contents"
          href: index.html
        - text: "Describing Data"
          menu:
            - text: "Graphical Summaries"
              href: GraphicalSummaries.html
            - text: "Numerical Summaries"
              href: NumericalSummaries.html
        - text: "Making Inference"
          menu: 
            - text: "Making Inference"
              href: MakingInference.html
            - text: "t Tests"
              href: tTests.html
            - text: "Wilcoxon Tests"
              href: WilcoxonTests.html
            - text: "ANOVA"
              href: ANOVA.html
            - text: "Kruskal-Wallis"
              href: Kruskal.html
            - text: "Linear Regression"
              href: LinearRegression.html
            - text: "Logistic Regression"
              href: LogisticRegression.html
        - text: "R Help"
          menu:
            - text: "R Commands"
              href: RCommands.html
            - text: "R Markdown Hints"
              href: RMarkdownHints.html
        - text: "Analyses"
          menu:
            - text: "Analysis Rubric"
              href: ./Analyses/AnalysisRubric.html
            - text: "Good Example Analysis"
              href: ./Analyses/StudentHousing.html
            - text: "Poor Example Analysis"
              href: ./Analyses/StudentHousingPOOR.html
            - text: "My First Analysis"
              href: ./Analyses/StudentHousingII.html
    
    output_dir: '.'
    

    我读到的大多数关于下标越界的帖子都与他们试图从域中获取数字的数组有关,我认为在这种情况下与此无关。

    1 回复  |  直到 7 年前
        1
  •  1
  •   Alex    7 年前

    正如大家所知,我已经回答了这个问题,它最终成为了rmarkdown库,在最新版本中有一些bug,我安装了这个版本之前,它似乎在这方面工作得很好,我现在在其他地方有另一个bug,但我想我可以修复它。