Learn R Programming

samatha (version 0.41)

update.site: Checks if source files were modified after the corresponding dest files if : - layouts newer than any html files : rebuild everything - DONE - no corresponding html for source OR source newer than html file : build - html files with no source : delete html - otherwise do nothing and return false todo - Error testing

Description

Checks if source files were modified after the corresponding dest files if : - layouts newer than any html files : rebuild everything - DONE - no corresponding html for source OR source newer than html file : build - html files with no source : delete html - otherwise do nothing and return false todo - Error testing

Usage

update.site(site, site.state, post.layout, tag.layout, fig.path)

Arguments

site
Absolute path to your Samatha site
site.state
The value of get.site.state(site): modification times for elements of the site
post.layout
The name of the layout file used to render posts
tag.layout
The name of the layout file used to render subject tags
fig.path
name of the directory in the site where figures (particularly R charts etc.) are to be kept

Value

logical TRUE if site has been updated, FALSE otherwise