Skip to contents

Extract library from one line text

Usage

extract_lib(line)

Arguments

line

character text from code

Value

NULL or library name extracted from text

Examples

extract_lib("library(apple)")
#> [1] "apple"