Skip to content

keras

R Interface to 'Keras'

v2.16.1 · Feb 13, 2026 · MIT + file LICENSE

Description

Interface to 'Keras' <https://keras.io>, a high-level neural networks 'API'. 'Keras' was developed with a focus on enabling fast experimentation, supports both convolution based networks and recurrent networks (as well as combinations of the two), and runs seamlessly on both 'CPU' and 'GPU' devices.

Downloads

CRAN

12.8K

Last 30 days

1045th

51.4K

Last 90 days

505.4K

Last year

Trend: -29.6% (30d vs prior 30d)

r2u CRAN

267

Last 30 days

849

Last 90 days

2.4K

Last year

Trend: -21.2% (30d vs prior 30d)

autoCRAN

1

Last 7 days

17

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

conda-forge CRAN

396

Last 30 days

1.5K

Last 90 days

6.5K

Last year

Trend: -12% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

whether package can be installed

install log ‘’ does not exist
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.2Mb
  sub-directories of 1Mb or more:
    doc    2.0Mb
    help   2.2Mb

Code

Structure

Lines of code

61,039

Files

642

Compiled share

0%

Has compiled src

No

Language breakdown

R 23,206 (38%)Tests 5,199 (8.5%)Docs 28,810 (47.2%)Vignettes 3,824 (6.3%)

API

Exported functions

561

Internal functions

132

Recent export changes

v2.9.0+19 %<>%, k_unstack, layer_random_brightness +16 more
v2.8.0+2 k_random_bernoulli, layer_depthwise_conv_1d

Testing & CI

Has tests

Yes

Test-to-code ratio

0.22

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

58.7%

\dontrun example ratio

87.5%

Roxygen coverage

99.1%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

6.3%

Unsafe pattern score

6

Dep constraint coverage

40%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.6

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

26

First release

2017-07-30

Latest release

2026-02-14

Avg cadence

92 days

Cold removal rate

100%

Dep drift

24

LOC over versions

v2.0.5: 20,006 LOCv2.0.6: 21,422 LOCv2.0.8: 21,942 LOCv2.0.9: 23,564 LOCv2.1.2: 32,591 LOCv2.1.3: 32,649 LOCv2.1.4: 33,544 LOCv2.1.5: 34,105 LOCv2.1.6: 34,279 LOCv2.2.0: 37,666 LOCv2.2.4: 39,134 LOCv2.2.4.1: 39,421 LOCv2.2.5.0: 41,354 LOCv2.3.0.0: 39,454 LOCv2.4.0: 41,518 LOCv2.6.0: 50,627 LOCv2.6.1: 52,160 LOCv2.7.0: 55,509 LOCv2.8.0: 56,532 LOCv2.9.0: 59,174 LOCv2.11.0: 60,787 LOCv2.11.1: 60,787 LOCv2.13.0: 60,887 LOCv2.15.0: 60,918 LOCv2.16.0: 61,024 LOCv2.16.1: 61,039 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (67)

depends

Dependency Network

Dependencies Reverse dependencies generics reticulate tensorflow (>= 2.13.0.9000) tfruns magrittr zeallot glue R6 rlang LDNN MantaID ARMALSTM EEMDlstm LilRhino MBMethPred ML2Pvae PLEXI ProcData SPORTSCausal TSLSTM TSLSTMplus TSPred TSdeeplearning TraceAssist +52 more reverse deps keras

Version History

27 tracked
new 2.16.1 Mar 10, 2026
updated 2.16.1 ← 2.16.0 diff Feb 13, 2026
updated 2.16.0 ← 2.15.0 diff Aug 17, 2025
updated 2.15.0 ← 2.13.0 diff Apr 19, 2024
updated 2.13.0 ← 2.11.1 diff Aug 14, 2023
updated 2.11.1 ← 2.11.0 diff Mar 19, 2023
updated 2.11.0 ← 2.9.0 diff Dec 19, 2022
updated 2.9.0 ← 2.8.0 diff May 22, 2022
updated 2.8.0 ← 2.7.0 diff Feb 9, 2022
updated 2.7.0 ← 2.6.1 diff Nov 8, 2021
updated 2.6.1 ← 2.6.0 diff Sep 29, 2021
updated 2.6.0 ← 2.4.0 diff Aug 20, 2021
updated 2.4.0 ← 2.3.0.0 diff Mar 28, 2021
updated 2.3.0.0 ← 2.2.5.0 diff May 18, 2020
updated 2.2.5.0 ← 2.2.4.1 diff Oct 7, 2019