Skip to content

Commit

Permalink
updated another method to be LocalRaw
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewphamilton committed Mar 11, 2024
1 parent fd79844 commit 9731352
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 22 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ jobs:

- uses: r-lib/actions/setup-tinytex@v2

- uses: r-lib/actions/setup-tinytex@v2

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
Expand All @@ -44,14 +42,6 @@ jobs:
sudo add-apt-repository ppa:cran/librdf
sudo apt update
# Addresses issue with incompatibility between libcurl4-gnutls-dev and libcurl4-openssl-dev
# Below fix is a customisation of approach outlined in https://github.com/r-hub/sysreqsdb/issues/77#issuecomment-620025428
- name: Install libraptor on Linux
if: runner.os == 'Linux'
run: |
sudo add-apt-repository ppa:cran/librdf
sudo apt update
# Addresses issue with incompatibility between libcurl4-gnutls-dev and libcurl4-openssl-dev
# Below fix is a customisation of approach outlined in https://github.com/r-hub/sysreqsdb/issues/77#issuecomment-620025428
- name: Install libraptor on Linux
Expand Down
10 changes: 5 additions & 5 deletions R/mthd_metamorphose.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,18 @@ methods::setMethod("metamorphose", "VicinityLocalProcessed", function (x)
})
#'
#' Metamorphose a ready4 model module to a ready4 model module of a different class
#' @name metamorphose-VicinityLocal
#' @description metamorphose method applied to VicinityLocal
#' @param x An object of class VicinityLocal
#' @name metamorphose-VicinityLocalRaw
#' @description metamorphose method applied to VicinityLocalRaw
#' @param x An object of class VicinityLocalRaw
#' @param imports_chr Imports (a character vector)
#' @param raw_fls_dir_1L_chr Raw files directory (a character vector of length one)
#' @param write_1L_lgl Write (a logical vector of length one)
#' @return X (Object defining data to be saved in local directory in a processed (R) format.)
#' @rdname metamorphose-methods
#' @aliases metamorphose,VicinityLocal-method
#' @aliases metamorphose,VicinityLocalRaw-method
#' @export
#' @importFrom ready4 metamorphose
methods::setMethod("metamorphose", "VicinityLocal", function (x, imports_chr, raw_fls_dir_1L_chr, write_1L_lgl)
methods::setMethod("metamorphose", "VicinityLocalRaw", function (x, imports_chr, raw_fls_dir_1L_chr, write_1L_lgl)
{
x_VicinityLocalProcessed <- VicinityLocalProcessed(a_VicinityLookup = x@a_VicinityLookup,
imports_chr = imports_chr, merge_itms_chr = x@merge_itms_chr,
Expand Down
2 changes: 1 addition & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ reference:
- manufacture.vicinity_points
- manufacture.vicinity_processed
- manufacture.vicinity_raw
- metamorphose-VicinityLocal
- metamorphose-VicinityLocalProcessed
- metamorphose-VicinityLocalRaw
- metamorphose.vicinity_raw
- procure-VicinityProfile
- procure.vicinity_abbreviations
Expand Down
2 changes: 1 addition & 1 deletion data-raw/s4_fns/metamorphose.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
metamorphose_VicinityLocal <- function(x, #"makeProcessed_r4" #transform_sp_local_r4_toProcessed_r4
metamorphose_VicinityLocalRaw <- function(x, #"makeProcessed_r4" #transform_sp_local_r4_toProcessed_r4 # metamorphose_VicinityLocal
imports_chr,
raw_fls_dir_1L_chr,
write_1L_lgl){
Expand Down
10 changes: 5 additions & 5 deletions man/metamorphose-methods.Rd

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

0 comments on commit 9731352

Please sign in to comment.