-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added navigation to HTML based documentation
- Loading branch information
1 parent
2b50bcd
commit 22ed142
Showing
6 changed files
with
154 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
Package: goxygen | ||
Type: Package | ||
Title: Documentation package for modular GAMS code | ||
Version: 0.10.0 | ||
Date: 2018-09-06 | ||
Version: 0.11.0 | ||
Date: 2018-09-07 | ||
Authors@R: c(person("Jan Philipp", "Dietrich", email = "[email protected]", role = c("aut","cre"))) | ||
Description: A collection of tools which allow to manipulate and analyze code. | ||
Imports: pander, stringi, lucode | ||
URL: https://github.com/pik-piam/goxygen, https://doi.org/10.5281/? | ||
BugReports: https://github.com/pik-piam/goxygen/issues | ||
License: BSD_2_clause + file LICENSE | ||
Encoding: UTF-8 | ||
LazyData: no | ||
RoxygenNote: 6.1.0 | ||
ValidationKey: 1778000 | ||
ValidationKey: 1955910 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#' readConf | ||
#' | ||
#' Read goxygen configuration file | ||
#' @param goxygen_conf path to a goxygen configuration file (will be ignored if file does not exist). The file | ||
#' can be used to supply additional information about the model such as name or version number. | ||
#' Allowed settings are: Name (name of the model), Version (model version) and Logo (path to a model logo). | ||
#' Entries are supplied in the format "Name: content", each entry must be a single line. | ||
#' @author Jan Philipp Dietrich | ||
#' @seealso \code{\link{goxygen}}, \code{\link{buildHTML}} | ||
#' @export | ||
|
||
readConf <- function(goxygen_conf) { | ||
if(!file.exists(goxygen_conf)) return(NULL) | ||
a <- readLines(goxygen_conf) | ||
pattern <- "^([^:]*): (.*)$" | ||
#extract only settings from lines which follow the pattern: | ||
a <- grep(pattern,a,value=TRUE) | ||
item <- sub(pattern,"\\1",a) | ||
value <- sub(pattern,"\\2",a) | ||
names(value) <- item | ||
return(as.list(value)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters