Skip to content

Commit

Permalink
renamed function
Browse files Browse the repository at this point in the history
  • Loading branch information
ESCRI11 committed Oct 5, 2021
1 parent debfba5 commit 63046f8
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 33 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: dsOmics
Type: Package
Title: DataSHIELD server site Omic functions
Version: 1.0.7-7
Version: 1.0.7-8
Date: 2021-07-08
Authors@R: c(person("Yannick", "Marcon", , "yannick.marcon@obiba.org", role = "aut"),
person("Xavier", "Esriba-Montagut", , "xavier.escriba@isglobal.org", role = "aut"),
Expand Down
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export(getChromosomeNamesDS)
export(getSNPSbyGenDS)
export(getVariable)
export(limmaDS)
export(make_valid_column_namesDS)
export(make_valid_namesDS)
export(nFeaturesDS)
export(nSamplesDS)
export(plinkDS)
Expand Down
13 changes: 0 additions & 13 deletions R/make_valid_column_namesDS.R

This file was deleted.

18 changes: 18 additions & 0 deletions R/make_valid_namesDS.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#' @title Rename column names and character variables
#'
#' @description Passes the column names and the character variables through \code{make.names}, this creates
#' names without any special characters so there are no problems for accessing any columns or any category
#' when using the DataSHIELD parser.
#'
#' @param x \code{data.frame} Entry table to modify
#'
#' @return \code{data.frame} with the column names and character columns updated
#' @export
#'
#' @examples
make_valid_namesDS <- function(x){
x <- eval(parse(text=x), envir = parent.frame())
colnames(x) <- make.names(colnames(x))
x <- x %>% mutate(across(where(is.character), make.names))
return(x)
}
2 changes: 1 addition & 1 deletion inst/DATASHIELD
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ AssignMethods:
RNAseqPreprocDS,
PRSDS,
PRSDS_aux,
make_valid_column_namesDS
make_valid_namesDS
17 changes: 0 additions & 17 deletions man/make_valid_column_namesDS.Rd

This file was deleted.

19 changes: 19 additions & 0 deletions man/make_valid_namesDS.Rd

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

0 comments on commit 63046f8

Please sign in to comment.