@@ -26,20 +26,36 @@ search: true
2626
2727home :
2828 title : Silhouette Package
29- links :
30- - text : " CRAN Task View: Cluster"
31- href : https://CRAN.R-project.org/view=Cluster
32- # - text: <img src="https://img.shields.io/badge/CRAN%20Task%20View-Cluster-orange" alt="CRAN Task View">
33- # href: https://CRAN.R-project.org/view=Cluster
3429 sidebar :
35- structure : [downloads, links, license, community, citation, authors]
30+ structure : [downloads, inviews, links, license, community, citation, authors, dev ]
3631 components :
3732 downloads :
3833 title : " Downloads"
3934 text : |
40- [](https://kskbhat.r-universe.dev/Silhouette)
41- [](https://r-pkg.org/pkg/Silhouette)
35+ <p>
36+ <b>Monthly Downloads:</b> <span id="monthly">Loading...</span><br>
37+ <b>Total Downloads:</b> <span id="total">Loading...</span>
38+ </p>
39+ <script>
40+ // Fetch live download counts from CRANlogs API
41+ fetch("https://cranlogs.r-pkg.org/downloads/total/last-month/Silhouette")
42+ .then(r => r.json())
43+ .then(d => {
44+ document.getElementById("monthly").textContent =
45+ d.downloads.toLocaleString();
46+ });
47+ fetch("https://cranlogs.r-pkg.org/downloads/total/1900-01-01:2100-01-01/Silhouette")
48+ .then(r => r.json())
49+ .then(d => {
50+ document.getElementById("total").textContent =
51+ d.downloads.toLocaleString();
52+ });
53+ </script>
4254
55+ inviews :
56+ title : " In Views"
57+ text : |
58+ [CRAN Task View: Cluster](https://CRAN.R-project.org/view=Cluster)
4359
4460authors :
4561 Shrikrishna Bhat K :
@@ -64,4 +80,4 @@ reference:
6480
6581navbar :
6682 structure :
67- right : [search,github,lightswitch]
83+ right : [search, github, lightswitch]
0 commit comments