title: Creating internal functions (can't be called from console) in R
body: <p>I'm working on an R package where I have an overarching function that generates some files, we'll call it <code>main(...)</code> and it exists in its own file <code>main.R</code>. Now <code>main</code> calls other functions like <code>helper1(...)</code> and <code>helper2(...)</code> which are found in <code>helper1.R</code> and <code>helper2.R</code>. Is it possible to make it so that <code>main</code> can call the helper functions, but the user cannot call directly the helper functions? I have them spread out in different files due to the stark differences in their purpose. Is the solution to put them all under one file <code>main.R</code>?</p>