Skip to content

Commit

Permalink
Move the check whether Tensorflow is available from the roxygen2 tag …
Browse files Browse the repository at this point in the history
…to the example body
  • Loading branch information
nkoenen committed Dec 21, 2023
1 parent 814da93 commit 72f4542
Show file tree
Hide file tree
Showing 19 changed files with 42 additions and 39 deletions.
4 changes: 2 additions & 2 deletions man-roxygen/examples-ConnectionWeights.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
#' # Plot the result
#' plot(cw)
#' }
#' @examplesIf keras::is_keras_available() & torch::torch_is_installed()
#' @examplesIf torch::torch_is_installed()
#' # ------------------------- Example 3: Keras -------------------------------
#' if (require("keras")) {
#' if (require("keras") & keras::is_keras_available()) {
#' library(keras)
#'
#' # Make sure keras is installed properly
Expand Down
4 changes: 2 additions & 2 deletions man-roxygen/examples-Converter.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
#' converter$model$modules_list
#' }
#'
#' @examplesIf keras::is_keras_available() & torch::torch_is_installed()
#' @examplesIf torch::torch_is_installed()
#' #----------------------- Example 3: Keras ----------------------------------
#' if (require("keras")) {
#' if (require("keras") & keras::is_keras_available()) {
#' library(keras)
#'
#' # Make sure keras is installed properly
Expand Down
4 changes: 2 additions & 2 deletions man-roxygen/examples-DeepLift.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
#' boxplot(deeplift_rescale)
#' }
#'
#' @examplesIf keras::is_keras_available() & torch::torch_is_installed()
#' @examplesIf torch::torch_is_installed()
#' # ------------------------- Example 3: Keras -------------------------------
#' if (require("keras")) {
#' if (require("keras") & keras::is_keras_available()) {
#' library(keras)
#'
#' # Make sure keras is installed properly
Expand Down
4 changes: 2 additions & 2 deletions man-roxygen/examples-DeepSHAP.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
#' boxplot(deepshap)
#' }
#'
#' @examplesIf keras::is_keras_available() & torch::torch_is_installed()
#' @examplesIf torch::torch_is_installed()
#' # ------------------------- Example 3: Keras -------------------------------
#' if (require("keras")) {
#' if (require("keras") & keras::is_keras_available()) {
#' library(keras)
#'
#' # Make sure keras is installed properly
Expand Down
4 changes: 2 additions & 2 deletions man-roxygen/examples-Gradient.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
#' plot(gradient, data_idx = c(1, 60), output_idx = 1:3)
#' }
#'
#' @examplesIf keras::is_keras_available() & torch::torch_is_installed()
#' @examplesIf torch::torch_is_installed()
#' # ------------------------- Example 3: Keras -------------------------------
#' if (require("keras")) {
#' if (require("keras") & keras::is_keras_available()) {
#' library(keras)
#'
#' # Make sure keras is installed properly
Expand Down
4 changes: 2 additions & 2 deletions man-roxygen/examples-IntegratedGradient.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
#' boxplot(int_grad)
#' }
#'
#' @examplesIf keras::is_keras_available() & torch::torch_is_installed()
#' @examplesIf torch::torch_is_installed()
#' # ------------------------- Example 3: Keras -------------------------------
#' if (require("keras")) {
#' if (require("keras") & keras::is_keras_available()) {
#' library(keras)
#'
#' # Make sure keras is installed properly
Expand Down
4 changes: 2 additions & 2 deletions man-roxygen/examples-LRP.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@
#' plot(lrp, output_idx = 1:3)
#' }
#'
#' @examplesIf keras::is_keras_available() & torch::torch_is_installed()
#' @examplesIf torch::torch_is_installed()
#' # ------------------------- Example 3: Keras -------------------------------
#' if (require("keras")) {
#' if (require("keras") & keras::is_keras_available()) {
#' library(keras)
#'
#' # Make sure keras is installed properly
Expand Down
4 changes: 2 additions & 2 deletions man-roxygen/examples-SmoothGrad.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
#' plot(smoothgrad, data_idx = c(1, 60), output_idx = 1:3)
#' }
#'
#' @examplesIf keras::is_keras_available() & torch::torch_is_installed()
#' @examplesIf torch::torch_is_installed()
#' # ------------------------- Example 3: Keras -------------------------------
#' if (require("keras")) {
#' if (require("keras") & keras::is_keras_available()) {
#' library(keras)
#'
#' # Make sure keras is installed properly
Expand Down
4 changes: 2 additions & 2 deletions man/ConnectionWeights.Rd

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

4 changes: 2 additions & 2 deletions man/Converter.Rd

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

4 changes: 2 additions & 2 deletions man/DeepLift.Rd

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

4 changes: 2 additions & 2 deletions man/DeepSHAP.Rd

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

4 changes: 2 additions & 2 deletions man/ExpectedGradient.Rd

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

4 changes: 2 additions & 2 deletions man/Gradient.Rd

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

4 changes: 2 additions & 2 deletions man/IntegratedGradient.Rd

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

4 changes: 2 additions & 2 deletions man/LRP.Rd

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

4 changes: 2 additions & 2 deletions man/SmoothGrad.Rd

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

8 changes: 5 additions & 3 deletions man/innsight_ggplot2-indexing.Rd

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

5 changes: 3 additions & 2 deletions man/innsight_plotly-indexing.Rd

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

0 comments on commit 72f4542

Please sign in to comment.