These ifelse steps should be handled within spcr_make_data_bundle() not within the Rmd.
The target text is already handled in that function, so logic in the Rmd template is superfluous.
The target set by is not yet handled in the function but could easily be. And then remove the logic in the Rmd.
If "target set by" is blank (NA) it should get changed to a "-" for publication so the white box gets rendered.
These ifelse steps should be handled within spcr_make_data_bundle() not within the Rmd.
The target text is already handled in that function, so logic in the Rmd template is superfluous. The target set by is not yet handled in the function but could easily be. And then remove the logic in the Rmd.
If "target set by" is blank (NA) it should get changed to a "-" for publication so the white box gets rendered.