Skip to content

Commit

Permalink
Update roxygen docs files missed in #25 (#26)
Browse files Browse the repository at this point in the history
* Update roxygen docs files missed in #25

* Fix missing gradient in Langevin example

* Ignore .lintr config file to avoid R check note
  • Loading branch information
matt-graham authored Aug 2, 2024
1 parent bf55eea commit 788479f
Show file tree
Hide file tree
Showing 10 changed files with 185 additions and 4 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
^_pkgdown\.yml$
^docs$
^pkgdown$
^.lintr$
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
export(barker_proposal)
export(chain_state)
export(example_gaussian_stan_model)
export(langevin_proposal)
export(random_walk_proposal)
export(robust_shape_adapter)
export(sample_chain)
Expand Down
3 changes: 2 additions & 1 deletion R/langevin.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ log_density_ratio_langevin <- function(
#'
#' @examples
#' target_distribution <- list(
#' log_density = function(x) -sum(x^2) / 2
#' log_density = function(x) -sum(x^2) / 2,
#' gradient_log_density = function(x) -x
#' )
#' proposal <- langevin_proposal(target_distribution, scale = 1.)
#' state <- chain_state(c(0., 0.))
Expand Down
1 change: 1 addition & 0 deletions man/example_gaussian_stan_model.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions man/involution_langevin.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions man/langevin_proposal.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions man/log_density_ratio_langevin.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions man/sample_langevin.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/sample_metropolis_hastings.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/target_distribution_from_stan_model.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 788479f

Please sign in to comment.