r/strip_header library
Utility to strip header comments from an R script file.
Time-stamp: <Monday 2024-12-02 09:08:14 +1100 Graham Williams>
Copyright (C) 2023, Togaware Pty Ltd.
Licensed under the GNU General Public License, Version 3 (the "License");
License: https://www.gnu.org/licenses/gpl-3.0.en.html
Authors: Graham Williams
Functions
-
rStripHeader(
String code) → String -
From the supplied
code
(an R script file contents) strip the initial copyright message from the script, keeping the first line as the script title, and keeping all remaining lines of the script file.