Skip to content

Commit 3a52dc1

Browse files
authored
Merge pull request #1514 from rstudio/keras2
Fix docs for CRAN
2 parents 2ddece1 + 48c11ae commit 3a52dc1

10 files changed

Lines changed: 13 additions & 9 deletions

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ Suggests:
4949
png,
5050
jpeg
5151
Roxygen: list(markdown = TRUE, r6 = FALSE)
52-
RoxygenNote: 7.3.1
52+
RoxygenNote: 7.3.2
5353
VignetteBuilder: knitr

R/callbacks.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ callback_lambda <- function(on_epoch_begin = NULL, on_epoch_end = NULL,
556556
#'
557557
#' @docType class
558558
#'
559-
#' @format An [R6Class] generator object
559+
#' @format An [R6::R6Class] generator object
560560
#'
561561
#' @field params Named list with training parameters (eg. verbosity, batch size, number of epochs...).
562562
#' @field model Reference to the Keras model being trained.

R/constraints.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ constraint_minmaxnorm <- function(min_value = 0.0, max_value = 1.0, rate = 1.0,
8888
#'
8989
#' @docType class
9090
#'
91-
#' @format An [R6Class] generator object
91+
#' @format An [R6::R6Class] generator object
9292
#'
9393
#' @section Methods:
9494
#' \describe{

R/layer-custom.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#'
77
#' @docType class
88
#'
9-
#' @format An [R6Class] generator object
9+
#' @format An [R6::R6Class] generator object
1010
#' @section Methods: \describe{ \item{\code{build(input_shape)}}{Creates the
1111
#' layer weights (must be implemented by all layers that have weights)}
1212
#' \item{\code{call(inputs,mask)}}{Call the layer on an input tensor.}

R/package.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ keras <- NULL
9696

9797
.onLoad <- function(libname, pkgname) {
9898

99+
packageStartupMessage(
100+
"The keras package is deprecated. Use the keras3 package instead."
101+
)
102+
99103
# resolve the implementation module (might be keras proper or might be tensorflow)
100104
implementation_module <- resolve_implementation_module()
101105

R/wrapper_custom.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#'
99
#' @docType class
1010
#'
11-
#' @format An [R6Class] generator object
11+
#' @format An [R6::R6Class] generator object
1212
#'
1313
#' @section Methods: \describe{
1414
#' \item{\code{build(input_shape)}}{Builds the wrapped layer.

man/KerasCallback.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/KerasConstraint.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/KerasLayer.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/KerasWrapper.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)