This alternative is from https://gist.github.com/hadley/6353939

readLinesRcpp(path)

path | Path to text file to read. |
---|

Similar to `readLines`

. It may not return identical results.

#> [1] "Package: reproducible" #> [2] "Type: Package" #> [3] "Title: A Set of Tools that Enhance Reproducibility Beyond Package Management" #> [4] "Description: Collection of high-level, robust, machine- and OS-independent tools" #> [5] " for making deeply reproducible and reusable content in R." #> [6] " This includes light weight package management (similar to 'packrat' and" #> [7] " 'checkpoint', but more flexible, lightweight and simpler than both), tools" #> [8] " for caching, downloading and verifying or writing checksums, post-processing " #> [9] " of common spatial datasets, and accessing GitHub repositories. " #> [10] " Some features are still under active development." #> [11] "SystemRequirements: 'unrar' (Linux/macOS) or '7-Zip' (Windows) to work with '.rar' files." #> [12] "URL: " #> [13] " http://reproducible.predictiveecology.org," #> [14] " https://github.com/PredictiveEcology/reproducible" #> [15] "Date: 2019-03-18" #> [16] "Version: 0.2.8" #> [17] "Authors@R: c(" #> [18] " person(\"Eliot J B\", \"McIntire\", email = \"eliot.mcintire@canada.ca\"," #> [19] " role = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0002-6914-8316\"))," #> [20] " person(\"Alex M\", \"Chubaty\", email = \"alex.chubaty@gmail.com\"," #> [21] " role = c(\"aut\"), comment = c(ORCID = \"0000-0001-7146-8135\"))," #> [22] " person(\"Tati\", \"Micheletti\", email = \"tati.micheletti@gmail.com\"," #> [23] " role = c(\"ctb\"), comment = c(ORCID = \"0000-0003-4838-8342\"))," #> [24] " person(\"Ceres\", \"Barros\", email = \"cbarros@mail.ubc.ca\"," #> [25] " role = c(\"ctb\"), comment = c(ORCID = \"0000-0003-4036-977X\"))," #> [26] " person(\"Ian\", \"Eddy\", email = \"ian.eddy@canada.com\"," #> [27] " role = c(\"ctb\"), comment = c(ORCID = \"0000-0001-7397-2116\"))," #> [28] " person(\"Her Majesty the Queen in Right of Canada, as represented by the Minister of Natural Resources Canada\"," #> [29] " role = \"cph\")" #> [30] " )" #> [31] "Depends:" #> [32] " R (>= 3.3)" #> [33] "Imports:" #> [34] " archivist (>= 2.1.2)," #> [35] " backports," #> [36] " crayon," #> [37] " data.table (>= 1.10.4)," #> [38] " digest," #> [39] " dplyr," #> [40] " fastdigest," #> [41] " fasterize," #> [42] " fpCompare," #> [43] " gdalUtils," #> [44] " git2r (>= 0.18)," #> [45] " googledrive," #> [46] " httr," #> [47] " magrittr," #> [48] " memoise," #> [49] " methods," #> [50] " parallel," #> [51] " quickPlot," #> [52] " R.utils," #> [53] " raster," #> [54] " Rcpp (>= 0.12.13)," #> [55] " RCurl (>= 1.95-4.8)," #> [56] " remotes," #> [57] " rgdal," #> [58] " rgeos," #> [59] " rlang," #> [60] " sf," #> [61] " sp," #> [62] " testthat," #> [63] " tools," #> [64] " utils," #> [65] " versions" #> [66] "Suggests:" #> [67] " covr," #> [68] " future," #> [69] " knitr," #> [70] " rmarkdown," #> [71] " TimeWarp" #> [72] "Encoding: UTF-8" #> [73] "Language: en-CA" #> [74] "LinkingTo: Rcpp" #> [75] "License: GPL-3" #> [76] "VignetteBuilder: knitr, rmarkdown" #> [77] "BugReports: https://github.com/PredictiveEcology/reproducible/issues" #> [78] "ByteCompile: yes" #> [79] "RoxygenNote: 6.1.1" #> [80] "Collate: " #> [81] " 'RcppExports.R'" #> [82] " 'cache-helpers.R'" #> [83] " 'cache-internals.R'" #> [84] " 'cache-tools.R'" #> [85] " 'robustDigest.R'" #> [86] " 'cache.R'" #> [87] " 'checksums.R'" #> [88] " 'cloud.R'" #> [89] " 'consistentPaths.R'" #> [90] " 'convertPaths.R'" #> [91] " 'download.R'" #> [92] " 'gis.R'" #> [93] " 'git.R'" #> [94] " 'helpers.R'" #> [95] " 'objectSize.R'" #> [96] " 'options.R'" #> [97] " 'packages.R'" #> [98] " 'pipe.R'" #> [99] " 'postProcess.R'" #> [100] " 'preProcess.R'" #> [101] " 'prepInputs.R'" #> [102] " 'reproducible-package.R'" #> [103] " 'search.R'" #> [104] " 'zzz.R'"