Description Usage Arguments Value Examples
View source: R/capture_package_name.R
This function takes a typical code chunk containing "library(package name)" as a string as input. It then returns only the package names in this string. This function is meant to be used with format_version()
1 | capture_package_name(string)
|
string |
string containing "library(package name)" |
string vector
1 2 | str = "library(tidyverse) # 1.3.1 library(readxl) #1.3.1 library(here) #1.0.1"
capture_package_name(string = str)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.