Closed lauramaxwell closed 4 days ago
started a template for the R/main.R
file needed for rhino
child apps, but still needs some work. golem and no-framework child apps are working well on my end.
I think we'd want to put in a Rproj when we create new children.
When overwriting, we should print out a message? (it does overwrite) Honestly, we can just disable overwrite?
In this else clause, system.file
can't start with "inst". You can actually omit "inst", and just give it the file name
I think we decided to detect the yaml file usage from parent? This might have to be tweaked
first two comments make sense i can i fix those quickly.
for the yaml usage- if they select to copy the jobs folder from the parent and a yaml exists in the parent's jobs folder than it will get copied over instead of the yaml template, which is i think what we wanted. maybe we need to make this more explicit in the documentation or argument names?
Overview
Creates
make_child_app()
function that copies over relevant pieces of the parentApp (found ininst
at the moment...will want to make this a standalone repo eventually) into a new child app. This function also allows the user to include ajobs
folder andmeta.yaml
file either from the parent app or the{matte}
templates, and include app-as-package framework elements fromgolem
orrhino
, if desired.closes #16 closes #4 closes #13 closes #6
Test code
Feel free to play with the arguments as you'd like given the help file