Skip to content

Commit

Permalink
don't need and minor typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjohnst86 committed Jun 6, 2019
1 parent 7d75864 commit 84e7c93
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions R/extract-deps.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

extract_rpkg_deps <- function(.file) {
extract_rpkg_deps <- function(.req_file) {
# TODO: Deal with versions?
.file %>%
.req_file %>%
readr::read_lines() %>%
str_subset("install") %>%
str_extract('\".*\"') %>%
Expand All @@ -12,17 +12,3 @@ extract_rpkg_deps <- function(.file) {
add_deps_imports <- function(.deps) {
purrr::walk(.deps, usethis::use_package)
}

deps_to_desc <- function(.file) {
deps <- .file %>%
extract_rpkg_deps()

# TODO: Check if DESCRIPTION file exists.
add_deps_imports(deps)

# TODO: Use something like withr instead of here?
fs::file_delete(here::here("requirements.R"))

return(invisible(NULL))
}

0 comments on commit 84e7c93

Please sign in to comment.