Skip to content

Commit

Permalink
[r] Documentation refresher (#2996)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel authored Sep 15, 2024
1 parent b3feada commit 99149b2
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apis/r/R/Init.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
} else {
.pkgenv[["use_current_domain_transitional_internal_only"]] <- FALSE
}
if (rpkg_lib_version != soma_lib_version) {
msg <- sprintf("TileDB Core version %s used by TileDB-R package, but TileDB-SOMA uses %s [%s]",
sQuote(rpkg_lib_version), sQuote(soma_lib_version), sQuote(cdmsg))
}
}

# This is temporary only. Please see:
Expand Down
5 changes: 5 additions & 0 deletions apis/r/R/RcppExports.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ c_group_put_metadata <- function(xp, key, obj) {

#' Get nnumber of metadata items
#' @param uri The array URI
#' @param is_array A boolean to indicate array or group
#' @param ctxxp An external pointer to the SOMAContext wrapper
#' @export
get_metadata_num <- function(uri, is_array, ctxxp) {
Expand All @@ -71,6 +72,7 @@ get_metadata_num <- function(uri, is_array, ctxxp) {
#' This function currently supports metadata as either a string or an 'int64' (or 'int32').
#' It will error if a different datatype is encountered.
#' @param uri The array URI
#' @param is_array A boolean to indicate array or group
#' @param ctxxp An external pointer to the SOMAContext wrapper
#' @export
get_all_metadata <- function(uri, is_array, ctxxp) {
Expand All @@ -81,6 +83,7 @@ get_all_metadata <- function(uri, is_array, ctxxp) {
#'
#' @param uri The array URI
#' @param key The array metadata key
#' @param is_array A boolean to indicate array or group
#' @param ctxxp An external pointer to the SOMAContext wrapper
#' @export
get_metadata <- function(uri, key, is_array, ctxxp) {
Expand All @@ -91,6 +94,7 @@ get_metadata <- function(uri, key, is_array, ctxxp) {
#'
#' @param uri The array URI
#' @param key The array metadata key
#' @param is_array A boolean to indicate array or group
#' @param ctxxp An external pointer to the SOMAContext wrapper
#' @export
has_metadata <- function(uri, key, is_array, ctxxp) {
Expand All @@ -101,6 +105,7 @@ has_metadata <- function(uri, key, is_array, ctxxp) {
#'
#' @param uri The array URI
#' @param key The array metadata key
#' @param is_array A boolean to indicate array or group
#' @param ctxxp An external pointer to the SOMAContext wrapper
#' @export
delete_metadata <- function(uri, key, is_array, ctxxp) {
Expand Down
2 changes: 2 additions & 0 deletions apis/r/man/delete_metadata.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions apis/r/man/get_all_metadata.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions apis/r/man/get_metadata.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions apis/r/man/get_metadata_num.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions apis/r/man/has_metadata.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions apis/r/src/metadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ std::unique_ptr<tdbs::SOMAObject> getObjectUniquePointer(bool is_array, OpenMode

//' Get nnumber of metadata items
//' @param uri The array URI
//' @param is_array A boolean to indicate array or group
//' @param ctxxp An external pointer to the SOMAContext wrapper
//' @export
// [[Rcpp::export]]
Expand All @@ -46,6 +47,7 @@ int32_t get_metadata_num(std::string& uri, bool is_array, Rcpp::XPtr<somactx_wra
//' This function currently supports metadata as either a string or an 'int64' (or 'int32').
//' It will error if a different datatype is encountered.
//' @param uri The array URI
//' @param is_array A boolean to indicate array or group
//' @param ctxxp An external pointer to the SOMAContext wrapper
//' @export
// [[Rcpp::export]]
Expand Down Expand Up @@ -89,6 +91,7 @@ Rcpp::List get_all_metadata(std::string& uri, bool is_array, Rcpp::XPtr<somactx_
//'
//' @param uri The array URI
//' @param key The array metadata key
//' @param is_array A boolean to indicate array or group
//' @param ctxxp An external pointer to the SOMAContext wrapper
//' @export
// [[Rcpp::export]]
Expand Down Expand Up @@ -120,6 +123,7 @@ std::string get_metadata(std::string& uri, std::string& key, bool is_array,
//'
//' @param uri The array URI
//' @param key The array metadata key
//' @param is_array A boolean to indicate array or group
//' @param ctxxp An external pointer to the SOMAContext wrapper
//' @export
// [[Rcpp::export]]
Expand All @@ -137,6 +141,7 @@ bool has_metadata(std::string& uri, std::string& key, bool is_array,
//'
//' @param uri The array URI
//' @param key The array metadata key
//' @param is_array A boolean to indicate array or group
//' @param ctxxp An external pointer to the SOMAContext wrapper
//' @export
// [[Rcpp::export]]
Expand Down

0 comments on commit 99149b2

Please sign in to comment.