Skip to content

Commit

Permalink
updated package name and description
Browse files Browse the repository at this point in the history
closes #10
  • Loading branch information
Ellpeck committed Jul 31, 2024
1 parent b1856fd commit 05a87c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
15 changes: 7 additions & 8 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
Package: flowradapter
Title: What the Package Does (One Line, Title Case)
Package: flowr
Title: flowR R Adapter
Version: 0.0.1
Authors@R:
person("First", "Last", , "first.last@example.com", role = c("aut", "cre"),
comment = c(ORCID = "YOUR-ORCID-ID"))
Description: What the package does (one paragraph).
License: `use_mit_license()`, `use_gpl3_license()` or friends to pick a
license
Authors@R: c(
person("Florian", "Sihler", email = "florian.sihler@uni-ulm.de", role = "cre"),
person("flowr-analysis", role = "cph"))
Description: Interact with flowR directly from R.
License: GPL-3 + file LICENSE
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
Expand Down
6 changes: 3 additions & 3 deletions R/node.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ install_node <- function(node_ver, verbose = FALSE, node_base_dir = get_default_
file_type <- if (os == "win") "zip" else "tar.gz"
node_archive_dest <- file.path(node_base_dir, paste0("node.", file_type))
node_file_name <- sprintf("node-v%s-%s-%s", node_ver, os, arch)
download.file(sprintf("https://nodejs.org/dist/v%s/%s.%s", node_ver, node_file_name, file_type), node_archive_dest)
utils::download.file(sprintf("https://nodejs.org/dist/v%s/%s.%s", node_ver, node_file_name, file_type), node_archive_dest)
if (verbose) {
print(paste0("Downloaded node archive to ", node_archive_dest))
}

if (file_type == "zip") {
unzip(node_archive_dest, exdir = node_base_dir)
utils::unzip(node_archive_dest, exdir = node_base_dir)
} else {
untar(node_archive_dest, exdir = node_base_dir)
utils::untar(node_archive_dest, exdir = node_base_dir)
}
unlink(node_archive_dest)

Expand Down

0 comments on commit 05a87c0

Please sign in to comment.