``` #RandomCodeSnippets
if rest, err, item.Name = rest.expectText(); err != nil {
return rest, fmt.Errorf("inventory: name: %w", err), item
} else if item.Name == "riding" { // ugh. item names are not quoted
if rest, err = rest.expectLiteral("horses"); err != nil {
return rest, fmt.Errorf("inventory: name: riding horses: %w", err), item
}
item.Name = "riding horses"
}
``` #GoLang
A new #QuartoPub #RStats post on making sure that {targets} re-renders a main document when a child document is modified.
I'll be honest, I wish I'd had this figured out last year when I was working on a manuscript that I was rendering to both plain formatting and journal formatting.
targets and Child Documents
https://rmflight.github.io/posts/2022-12-22-targets-and-child-documents/
#quartopub #rstats #randomcodesnippets
A new #QuartoPub #RStats post on making sure that {targets} re-renders a main document when a child document is modified.
I'll be honest, I wish I'd had this figured out last year when I was working on a manuscript that I was rendering to both plain formatting and journal formatting.
targets and Child Documents
https://rmflight.github.io/posts/2022-12-22-targets-and-child-documents/
#quartopub #rstats #randomcodesnippets