Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to most common errors descriptions and fixes #49

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions faqs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,49 @@ rmd_files: ["index.Rmd",
```
Commit the changes to your `_bookdown.yml` and see if the preview GitHub action runs appropriately.

### `404 error`: GitHub Action link to download and preview `.docx` file is returning a 404 error

If you get a 404 error after clicking the link while attempting to download the `.docx` file from the GitHub Action rendered previews, then add the following code to the end of the `_output.yml` file:

```
bookdown::word_document2:
toc: true
```

Commit the changes to your `_output.yml` and see if the preview GitHub action runs appropriately.

### `Error in if (title == x2) return(head) : the condition has length > 1`: Run bookdown render error

If you observe an error like this:

```
Error in if (title == x2) return(head) : the condition has length > 1
Calls: <Anonymous> ... split_chapters -> build -> sub -> is.factor -> prepend_chapter_title
Execution halted
Error: Process completed with exit code 1.
```

Then look at the `GA_Script.Rhtml` file and remove the following `html` frontmatter if it's present:

(at the beginning of the file)

```
<html>

<head>
<title>Title</title>
</head>

<body>
```

(at the end of the file)

```
</body>
</html>
```

## Ask a question on the Google Group

You can always start a discussion on the [Discussions](https://github.com/jhudsl/OTTR_Template/discussions) tab above. You can also join our [Google Group](https://groups.google.com/g/jhudsl) to ask questions and keep in touch with the OTTR community.
Expand Down
Loading