Skip to content

Commit

Permalink
added export method for the AnalysisData class
Browse files Browse the repository at this point in the history
  • Loading branch information
jasenfinch committed May 12, 2023
1 parent b3bb485 commit d16368b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
17 changes: 17 additions & 0 deletions R/export.R
Expand Up @@ -454,6 +454,23 @@ setMethod('export',signature = 'MetaboProfile',
return(c(si_fp,pi_fp,pd_fp))
})

#' @rdname export

setMethod('export',signature = 'AnalysisData',
function(x,outPath = '.',idx = 'name',prefix = 'analysis'){
x %>%
exportData(
outPath = outPath,
idx = idx,
prefix = prefix
)

x %>%
exportSampleInfo(
outPath = outPath
)
})

#' @rdname export
#' @importFrom dplyr bind_cols everything mutate select
#' @importFrom tidyr gather spread
Expand Down
3 changes: 3 additions & 0 deletions man/export.Rd

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

0 comments on commit d16368b

Please sign in to comment.