You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
25
25
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.
27
28
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).
46
31
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.
48
33
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.
50
35
51
36
Check the formatting of the code chunk, particularly paying attention to the `fig.alt` argument.
52
37
@@ -76,7 +61,38 @@ Note: Single quotation marks surrounding the whole argument with double quotatio
76
61
77
62
***
78
63
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:
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:
80
96
81
97
Underneath a section that says something like: `**Check spelling/url/quiz errors - fail if too many of them**` you may see something like:
82
98
```
@@ -97,7 +113,7 @@ Click on the `Download the errors here` to see the list of errors and which file
@@ -113,7 +129,7 @@ This will often happen when render-preview's git handling doesn't know which cha
113
129
114
130
***
115
131
116
-
### `Parser error: while parsing a flow sequence`: _bookdown.yml parse error
132
+
####`Parser error: while parsing a flow sequence`: _bookdown.yml parse error
117
133
118
134
If you see an error like this:
119
135
```
@@ -139,7 +155,7 @@ rmd_files: ["index.Rmd",
139
155
```
140
156
Commit the changes to your `_bookdown.yml` and see if the preview GitHub action runs appropriately.
141
157
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
143
159
144
160
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:
145
161
@@ -150,7 +166,7 @@ bookdown::word_document2:
150
166
151
167
Commit the changes to your `_output.yml` and see if the preview GitHub action runs appropriately.
152
168
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
154
170
155
171
If you observe an error like this:
156
172
@@ -181,8 +197,4 @@ Then look at the `GA_Script.Rhtml` file and remove the following `html` frontmat
181
197
</body>
182
198
</html>
183
199
```
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).
0 commit comments