No known key found for this signature in database
GPG Key ID: 1D7529BE14E2BBA9
5 changed files with
22 additions and
6 deletions
-
NAMESPACE
-
R/discover.R
-
R/query.R
-
README.md
-
man/bnjr_discover.Rd
|
|
@ -1,5 +1,7 @@ |
|
|
|
# Generated by roxygen2: do not edit by hand |
|
|
|
|
|
|
|
export(bjr_discover) |
|
|
|
export(bjr_query) |
|
|
|
export(bnjr_discover) |
|
|
|
export(bnjr_query) |
|
|
|
importFrom(Rcpp,sourceCpp) |
|
|
|
|
|
@ -9,4 +9,8 @@ bnjr_discover <- function(scan_time = 10L) { |
|
|
|
res <- unlist(strsplit(res, "\n")) |
|
|
|
ndjson::flatten(res, "tbl") |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#' @rdname bnjr_discover |
|
|
|
#' @export |
|
|
|
bjr_discover <- bnjr_discover |
|
|
@ -10,4 +10,8 @@ bnjr_query <- function(query, scan_time = 10L) { |
|
|
|
res <- unlist(strsplit(res, "\n")) |
|
|
|
ndjson::flatten(res, "tbl") |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#' @rdname bnjr_discover |
|
|
|
#' @export |
|
|
|
bjr_query <- bnjr_query |
|
|
@ -104,10 +104,10 @@ bnjr_query("_ssh._tcp.local.") %>% |
|
|
|
|
|
|
|
| Lang | \# Files | (%) | LoC | (%) | Blank lines | (%) | \# Lines | (%) | |
|
|
|
| :----------- | -------: | ---: | --: | ---: | ----------: | ---: | -------: | ---: | |
|
|
|
| C/C++ Header | 1 | 0.11 | 936 | 0.76 | 154 | 0.56 | 87 | 0.48 | |
|
|
|
| C/C++ Header | 1 | 0.11 | 936 | 0.76 | 154 | 0.55 | 87 | 0.47 | |
|
|
|
| C++ | 2 | 0.22 | 255 | 0.21 | 97 | 0.35 | 28 | 0.15 | |
|
|
|
| R | 5 | 0.56 | 20 | 0.02 | 9 | 0.03 | 34 | 0.19 | |
|
|
|
| Rmd | 1 | 0.11 | 13 | 0.01 | 17 | 0.06 | 32 | 0.18 | |
|
|
|
| R | 5 | 0.56 | 22 | 0.02 | 11 | 0.04 | 38 | 0.21 | |
|
|
|
| Rmd | 1 | 0.11 | 13 | 0.01 | 17 | 0.06 | 32 | 0.17 | |
|
|
|
|
|
|
|
## Code of Conduct |
|
|
|
|
|
|
|
|
|
@ -1,10 +1,16 @@ |
|
|
|
% Generated by roxygen2: do not edit by hand |
|
|
|
% Please edit documentation in R/discover.R |
|
|
|
% Please edit documentation in R/discover.R, R/query.R |
|
|
|
\name{bnjr_discover} |
|
|
|
\alias{bnjr_discover} |
|
|
|
\alias{bjr_discover} |
|
|
|
\alias{bjr_query} |
|
|
|
\title{Browse available services} |
|
|
|
\usage{ |
|
|
|
bnjr_discover(scan_time = 10L) |
|
|
|
|
|
|
|
bjr_discover(scan_time = 10L) |
|
|
|
|
|
|
|
bjr_query(query, scan_time = 10L) |
|
|
|
} |
|
|
|
\arguments{ |
|
|
|
\item{scan_time}{how long to scan for services; default is 10 and |
|
|
|