कैसे जांचें कि कौन सा पैकेज संस्करण आर में लोड किया गया है
आर में कौन सा पैकेज संस्करण लोड किया गया है यह जांचने के लिए आप निम्नलिखित फ़ंक्शन का उपयोग कर सकते हैं:
#display package version packageVersion(" ggplot2 ") #display the date when this package version was released packageDate(" ggplot2 ") #display description of the package packageDescription(" ggplot2 ")
निम्नलिखित उदाहरण दिखाता है कि व्यवहार में इन कार्यों का उपयोग कैसे करें।
उदाहरण: जांचें कि कौन सा पैकेज संस्करण आर में लोड किया गया है
मान लें कि हम ggplot2 पैकेज को अपने वर्तमान R वातावरण में लोड करते हैं:
library (ggplot2)
हम यह जांचने के लिए packageVersion() फ़ंक्शन का उपयोग कर सकते हैं कि ggplot2 का कौन सा संस्करण लोड किया गया है:
#display package version packageVersion(" ggplot2 ") [1] '3.3.2'
हम देखते हैं कि संस्करण 3.2.2 लोड किया गया है।
यह पता लगाने के लिए कि यह संस्करण कब जारी किया गया था, आप packageDate() फ़ंक्शन का उपयोग कर सकते हैं:
#display the date when this package version was released packageDate(" ggplot2 ") [1] "2020-06-17"
हम देख सकते हैं कि यह संस्करण 17 जून, 2020 को जारी किया गया था।
और पैकेज का विवरण प्रदर्शित करने के लिए, हम packageDescription() फ़ंक्शन का उपयोग कर सकते हैं:
#display description of the package packageDescription(" ggplot2 ") Package: ggplot2 Version: 3.3.2 Title: Create Elegant Data Visualizations Using the Grammar of Graphics Description: A system for 'declaratively' creating graphics, based on "The Grammar of Graphics". You provide the data, tell 'ggplot2' how to map variables to aesthetics, what graphical primitives to use, and it takes care of the details. Authors@R: c( person("Hadley", "Wickham", , "hadley@rstudio.com", "aut", comment = c(ORCID = "0000-0003-4757-117X"), person("Winston", "Chang", , role = "aut", comment = c(ORCID = "0000-0002-1576-2126"), person("Lionel", "Henry", , role = "aut"), person("Thomas Lin", "Pedersen", , "thomas.pedersen@rstudio.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-5147-4711"), person("Kohske", "Takahashi", role = "aut"), person("Claus", "Wilke", role = "aut", comment = c(ORCID = "0000-0002-7470-9261"), person("Kara", "Woo", role = "aut", comment = c(ORCID = "0000-0002-5125-4188"), person("Hiroaki", "Yutani", role = "aut", comment = c(ORCID = "0000-0002-3385-7233"), person("Dewey", "Dunnington", role = "aut", comment = c(ORCID = "0000-0002-9415-4582"), person("RStudio", role = c("cph", "fnd"))) Depends: R (>= 3.2) Imports: digest, glue, grDevices, grid, gtable (>= 0.1.1), isoband, MASS, mgcv, rlang (>= 0.3.0), scales (>= 0.5.0), stats, tibble, withr (>= 2.0.0) Suggested: covr, dplyr, ggplot2movies, hexbin, Hmisc, knitr, lattice, mapproj, maps, maptools, multcomp, munsell, nlme, profvis, quantreg, RColorBrewer, rgeos, rmarkdown, rpart, sf (>= 0.7-3), svglite (>= 1.2.0.9001), testthat (>= 2.1.0), vdiffr (>= 0.3.0) Enhances:sp License: GPL-2 | LICENSE file URL: https://ggplot2.tidyverse.org, https://github.com/tidyverse/ggplot2 BugReports: https://github.com/tidyverse/ggplot2/issues LazyData: true Collate: 'ggproto.r' 'ggplot-global.R' 'aaa-.r' 'aes-color-fill-alpha.r' ..... ThumbnailBuilder: knitr Roxygen Note: 7.1.0.9000 Encoding: UTF-8 NeedsCompilation: no Packaged: 2020-06-17 06:03:58 UTC; thomas Author: Hadley Wickham [aut] (<https://orcid.org/0000-0003-4757-117X>), Winston Chang [aut] (<https://orcid.org/0000-0002-1576-2126>), Lionel Henry [aut], Thomas Lin Pedersen [aut, cre] (<https://orcid.org/0000-0002-5147-4711>), Kohske Takahashi [aut], Claus Wilke [aut] (<https://orcid.org/0000-0002-7470-9261>), Kara Woo [aut] (<https://orcid.org/0000-0002-5125-4188>), Hiroaki Yutani [aut] (<https://orcid.org/0000-0002-3385-7233>), Dewey Dunnington [aut] (<https://orcid.org/0000-0002-9415-4582>), RStudio [cph, fnd] Maintainer: Thomas Lin Pedersen <thomas.pedersen@rstudio.com> Repository: CRAN Date/Publication: 2020-06-19 13:00:03 UTC Built: R 4.0.3; ; 2020-11-20 18:07:33 UTC; unix -- File: /usr/lib/R/site-library/ggplot2/Meta/package.rds
विवरण में इस बात का संक्षिप्त विवरण शामिल है कि पैकेज क्या करता है, पैकेज किसने बनाया, बग की रिपोर्ट कहां करनी है, इसे कब जारी किया गया था, और भी बहुत कुछ।
अतिरिक्त संसाधन
निम्नलिखित ट्यूटोरियल बताते हैं कि आर में अन्य सामान्य कार्य कैसे करें:
आर में पर्यावरण को कैसे साफ़ करें?
कैसे जांचें कि फ़ाइल आर में मौजूद है या नहीं
R में setwd/getwd का उपयोग कैसे करें