replacePattern: Replace pattern in all files in dir

Description Usage Arguments Value

View source: R/compileFeatures.R

Description

find/replace pattern in all files of specified file type in specified directory. Needed to modify number format when intefacing with GeneMANIA, on French locale machines. Without this step, CacheBuilder throws error with commas.

Usage

1
replacePattern(pattern = ",", target = ".", path = getwd(), fileType = "txt$")

Arguments

pattern

(char) pattern to find

target

(char) pattern to replace

path

(char) dir to replace pattern in

fileType

(char) pattern for files to replace pattern in

Value

No value. Files have patterns replaced in place.


BaderLab/netDx documentation built on Sept. 26, 2021, 9:13 a.m.