Because the googlesheets package had stopped working, the code has been migrated to googlesheets4. Also, all gsheet-IDs are now defined in one chunk in index.Rmd.
Meanwhile, two data changes have taken place due to updates in gsheets:
a few English type name updates by S. De Saeger
scheme HQ2190 has been split into two schemes
@ToonHub can you update below code that you made earlier? By making a join between attribute_1 and code, it has been assumed that attribute_1 always refers to a type, the name of which is used to automatically generate scheme names in namelist. However, currently attribute_1 in the schemes_MHQ object contains a value 2190_terr as attribute_1.
Preferably do these changes in a new pull request that branches from googlesheets4_hq2190 and that targets googlesheets4_hq2190, then you can add me as reviewer for that part.
Assuming that you'll need to do some steps interactively, or by compiling the bookdown yourself (in the generate_textdata project): renv's R version is now upgraded to 4.1.1 and the package versions are more recent (except git2rdata, which has been frozen at 0.2.1 in order to avoid re-sorting many rows). Anyway the renv::restore() line in index.Rmd should do its work.
Because the
googlesheets
package had stopped working, the code has been migrated togooglesheets4
. Also, all gsheet-IDs are now defined in one chunk inindex.Rmd
.Meanwhile, two data changes have taken place due to updates in gsheets:
HQ2190
has been split into two schemes@ToonHub can you update below code that you made earlier? By making a join between
attribute_1
andcode
, it has been assumed thatattribute_1
always refers to a type, the name of which is used to automatically generate scheme names innamelist
. However, currentlyattribute_1
in theschemes_MHQ
object contains a value2190_terr
asattribute_1
.https://github.com/inbo/n2khab/blob/86bd48ca4a2b6ad4386f01efd1e61b2a97e6dacc/misc/generate_textdata/30_schemes_and_scheme_types.Rmd#L569-L584
This currently leads to an erroneous last line in
namelist.tsv
:https://github.com/inbo/n2khab/blob/googlesheets4_hq2190/inst/textdata/namelist.tsv#L612
In case you consider
attribute_1
to no longer always be a type name, please also update this in the documentation of theschemes
data source:https://github.com/inbo/n2khab/blob/86bd48ca4a2b6ad4386f01efd1e61b2a97e6dacc/R/textdata.R#L244-L253
Preferably do these changes in a new pull request that branches from
googlesheets4_hq2190
and that targetsgooglesheets4_hq2190
, then you can add me as reviewer for that part.Assuming that you'll need to do some steps interactively, or by compiling the bookdown yourself (in the generate_textdata project):
renv
's R version is now upgraded to 4.1.1 and the package versions are more recent (exceptgit2rdata
, which has been frozen at 0.2.1 in order to avoid re-sorting many rows). Anyway therenv::restore()
line inindex.Rmd
should do its work.