Examples for 'base::read.dcf'


Read and Write Data in DCF Format

Aliases: read.dcf write.dcf

Keywords: print file

### ** Examples
## No test: 
## Create a reduced version of the DESCRIPTION file in package 'splines'
x <- read.dcf(file = system.file("DESCRIPTION", package = "splines"),
              fields = c("Package", "Version", "Title"))
write.dcf(x)
Package: splines
Version: 4.2.3
Title: Regression Spline Functions and Classes
## An online DCF file with multiple records
con <- url("https://cran.r-project.org/src/contrib/PACKAGES")
y <- read.dcf(con, all = TRUE)
close(con)
utils::str(y)
'data.frame':	22524 obs. of  16 variables:
 $ Package              : chr  "AalenJohansen" "aamatch" "AATtools" "ABACUS" ...
 $ Version              : chr  "1.0" "0.3.7" "0.0.3" "1.0.0" ...
 $ Suggests             : chr  "knitr, rmarkdown" "DOS2, sensitivity2x2xk, sensitivitymv, weightedRank, xtable" NA "rmarkdown (>= 1.13), knitr (>= 1.22)" ...
 $ License              : chr  "GPL (>= 2)" "GPL-2" "GPL-3" "GPL-3" ...
 $ MD5sum               : chr  "d7eb2a6275daa6af43bf8a980398b312" "ad33e6ede71f0bfa1e8d3c7fea171073" "ea8127d953ca6a2f118ea49441772af6" "50c54c4da09307cb95a70aaaa54b9fbd" ...
 $ NeedsCompilation     : chr  "no" "no" "no" "no" ...
 $ Depends              : chr  NA "R (>= 3.5.0)" "R (>= 3.6.0)" "R (>= 3.1.0)" ...
 $ Imports              : chr  NA "iTOS, stats" "magrittr, dplyr, doParallel, foreach" "ggplot2 (>= 3.1.0), shiny (>= 1.3.1)," ...
 $ LinkingTo            : chr  NA NA NA NA ...
 $ Enhances             : chr  NA NA NA NA ...
 $ License_restricts_use: chr  NA NA NA NA ...
 $ OS_type              : chr  NA NA NA NA ...
 $ Priority             : chr  NA NA NA NA ...
 $ License_is_FOSS      : chr  NA NA NA NA ...
 $ Archs                : chr  NA NA NA NA ...
 $ Path                 : chr  NA NA NA NA ...
## End(No test)

[Package base version 4.2.3 Index]