Function to insert time and date of the last compilation in the gmacs.tpl file.

insertTime2(object = NULL, pattern = NULL, .update = NULL, devel = FALSE)

Arguments

object

(character string) Input vector/table

pattern

(character string) pattern to look for.

.update

Logical: is it to update a new version of GMACS? If TRUE, the name of the new version of GMACS and the date of the compilation will be modified in the gmacsbase.tpl file.

devel

(logical)- flag to specify if this is a development version.

Value

a list. The first object is the line wherein the text should added (it corresponds to the line where the header is specified in gmacsbase.tpl). The second object is the new header definition. If this is not an update of GMACS, then the header of the gmacsbase.tpl file will not be modified but the gmacs.tpl file will specify the date of the new compilation.