yolandazzz13
])This vignette shows how developers can add their own custom table
templates to the autoslider.core package. This is useful if you’re
extending the package with your own commonly used table logic and want
it to integrate with the list_all_templates()
and
use_template()
framework.
First, navigate to the R/
directory. For example, if you
are creating a new custom table:
Then you can start editing the template contents inside the file. Be
sure to follow naming conventions: templates should start with
t_
, l_
, or g_
to be detected.
For your new template to be recognized by
list_all_templates()
, it must be found under the
inst/templates/
folder.
Navigate to that folder and link your new template file:
This creates a softlink to the file in the R/
folder,
meaning autoslider.core doesn’t duplicate the file, but still picks it
up.
list_all_templates()
Load the package and call:
Your new template t_my_custom_table
should appear in the
list.