Skip to content

Commit c6b3652

Browse files
authored
Merge pull request #24 from ottrproject/kweav-faq-adjust
Revise common errors section in faqs.Rmd
2 parents e1da492 + b9658c7 commit c6b3652

2 files changed

Lines changed: 46 additions & 33 deletions

File tree

faqs.Rmd

Lines changed: 45 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ output:
33
html_document:
44
toc: true
55
toc_float: true
6+
toc_depth: 4
67
---
78

89
## Search on OTTR docs
@@ -17,36 +18,20 @@ Search on the OTTR docs for what you are looking for. Note that first few entrie
1718
## Most Common Errors
1819

1920
This guide will describe the most common OTTR errors and pitfalls and how to address them.
20-
When you open a pull request, you should see a report like this:
2121

22-
![](https://github.com/ottrproject/OTTR_Template/raw/main/resources/screenshots/gha-actions-error.png)
22+
### Content not rendering or updating
2323

24-
When you see an ❌ , click on the `Details` button to see the error message. We'll discuss the most common error messages here.
24+
This may be a quiet error where the content just doesn't update and you are not warned that there is a problem.
2525

26-
***
26+
* Check that the GitHub repository `GH_PAT` is up to date. (An associated GitHub Actions error that suggests the `GH_PAT` needs to be updated is an `exit code 128`)
27+
* Use this [cheatsheet on updating your GH_PAT](https://www.ottrproject.org/cheatsheets/ottr_token.html) if you need help.
2728

28-
### `file is not in PNG format`: Google Slides permissions fail
29-
30-
_Error example:_
31-
```
32-
Error in png::readPNG(path, native = TRUE, info = TRUE) :
33-
file is not in PNG format
34-
Calls: local ... lapply -> FUN -> raster_dpi_width -> attr -> <Anonymous>
35-
Execution halted
36-
Error in Rscript_render(f, render_args, render_meta, add1, add2) :
37-
Failed to compile <file_name>.Rmd
38-
Calls: local ... <Anonymous> -> render_new_session -> Rscript_render
39-
Execution halted
40-
Error: bookdown::render_book() failed to render the output format 'bookdown::gitbook'.
41-
Execution halted
42-
```
43-
_What does this mean?:_
44-
45-
Your Google Slides presentation you have tried to retrieve a slide from with `ottrpal::include_slide()` is not public. Your Google Slide document must be set to `Anyone with a link`. See [this article for more details.](https://support.wix.com/en/article/setting-permissions-for-google-drive-files-and-folders#:~:text=Settings%20Permissions%20for%20a%20Google,edit%20and%20comment%20as%20well.) The renders will fail if this is not set! See the [setting up images and graphics section](https://www.ottrproject.org/writing_content_courses.html#set-up-images) for more details.
29+
* Check that the config file is up-to-date. It should look like this: https://github.com/ottrproject/OTTR_Template/blob/main/config_automation.yml.
30+
(be careful to keep your selections for the configuration you would like).
4631

47-
***
32+
* Your workflow files may be out of date compared to the template and you may need to request a sync by opening an issue in the template repository.
4833

49-
### You observe the code for `include_slide()` or `<img src="...", ... >` rather than the Google Slide image.
34+
#### You observe the code for `include_slide()` or `<img src="...", ... >` rather than the Google Slide image.
5035

5136
Check the formatting of the code chunk, particularly paying attention to the `fig.alt` argument.
5237

@@ -76,7 +61,38 @@ Note: Single quotation marks surrounding the whole argument with double quotatio
7661

7762
***
7863

79-
### `Process completed with exit code 1.`: Spell check/url check/quiz format fail:
64+
### Errors for pull request check failures
65+
66+
When you open a pull request, you should see a report like this:
67+
68+
![](https://github.com/ottrproject/OTTR_Template/raw/main/resources/screenshots/gha-actions-error.png)
69+
70+
When you see an ❌ , click on the `Details` button to see the error message. We'll discuss the most common error messages here.
71+
72+
***
73+
74+
#### `file is not in PNG format`: Google Slides permissions fail
75+
76+
_Error example:_
77+
```
78+
Error in png::readPNG(path, native = TRUE, info = TRUE) :
79+
file is not in PNG format
80+
Calls: local ... lapply -> FUN -> raster_dpi_width -> attr -> <Anonymous>
81+
Execution halted
82+
Error in Rscript_render(f, render_args, render_meta, add1, add2) :
83+
Failed to compile <file_name>.Rmd
84+
Calls: local ... <Anonymous> -> render_new_session -> Rscript_render
85+
Execution halted
86+
Error: bookdown::render_book() failed to render the output format 'bookdown::gitbook'.
87+
Execution halted
88+
```
89+
_What does this mean?:_
90+
91+
Your Google Slides presentation you have tried to retrieve a slide from with `ottrpal::include_slide()` is not public. Your Google Slide document must be set to `Anyone with a link`. See [this article for more details.](https://support.wix.com/en/article/setting-permissions-for-google-drive-files-and-folders#:~:text=Settings%20Permissions%20for%20a%20Google,edit%20and%20comment%20as%20well.) The renders will fail if this is not set! See the [setting up images and graphics section](https://www.ottrproject.org/writing_content_courses.html#set-up-images) for more details.
92+
93+
***
94+
95+
#### `Process completed with exit code 1.`: Spell check/url check/quiz format fail:
8096

8197
Underneath a section that says something like: `**Check spelling/url/quiz errors - fail if too many of them**` you may see something like:
8298
```
@@ -97,7 +113,7 @@ Click on the `Download the errors here` to see the list of errors and which file
97113

98114
***
99115

100-
### `CONFLICT (modify/delete)`: Merge conflict fail:
116+
#### `CONFLICT (modify/delete)`: Merge conflict fail:
101117

102118
_Error example:_
103119
```
@@ -113,7 +129,7 @@ This will often happen when render-preview's git handling doesn't know which cha
113129

114130
***
115131

116-
### `Parser error: while parsing a flow sequence`: _bookdown.yml parse error
132+
#### `Parser error: while parsing a flow sequence`: _bookdown.yml parse error
117133

118134
If you see an error like this:
119135
```
@@ -139,7 +155,7 @@ rmd_files: ["index.Rmd",
139155
```
140156
Commit the changes to your `_bookdown.yml` and see if the preview GitHub action runs appropriately.
141157

142-
### `404 error`: GitHub Action link to download and preview `.docx` file is returning a 404 error
158+
#### `404 error`: GitHub Action link to download and preview `.docx` file is returning a 404 error
143159

144160
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:
145161

@@ -150,7 +166,7 @@ bookdown::word_document2:
150166

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

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

155171
If you observe an error like this:
156172

@@ -181,8 +197,4 @@ Then look at the `GA_Script.Rhtml` file and remove the following `html` frontmat
181197
</body>
182198
</html>
183199
```
184-
## Content not rendering
185-
186-
Check that the config file is up-to-date. It should look like this: https://github.com/ottrproject/OTTR_Template/blob/main/config_automation.yml.
187-
(be careful to keep your selections for the configuration you would like).
188200

resources/dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Favicons
6767
GHA
6868
github
6969
github
70+
GH
7071
GHA
7172
Github
7273
GitKraken

0 commit comments

Comments
 (0)