Skip to content

Provide cell coloring in curation templates (...and beyond)#29

Draft
allenbaron wants to merge 4 commits into
templatefrom
gs_color
Draft

Provide cell coloring in curation templates (...and beyond)#29
allenbaron wants to merge 4 commits into
templatefrom
gs_color

Conversation

@allenbaron
Copy link
Copy Markdown
Collaborator

Goal: Support cell coloring in Google Sheets, particularly for curation templates.

Cell background formatting might really only be useful for adding a visual indicator on where term data stanzas/groups begin.

This should work as is but shouldn't be implemented until data being written into a curation template is ordered in a deterministic way.

gs_col2rgb() recognizes a subset of the standard Google Sheets
colors by name (as seen by hover in Google Sheets) or hex code
and converts these values to RGB.

RGB is needed for googlesheets4 to set fill color. See examples
of googlesheets4::range_flood().

Only a subset of Google Sheets colors are included in gs_color.
- Allow all hex color codes... not sure why I chose to limit them
in the first place.
- Drop naming of output... not all hex codes will have names and
the names could be added in the wrong order anyway.
To set fill color of cells. Intended for use in
curation_template() when .data is provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant