Learn R Programming

wrMisc (version 1.8.1)

gitDataUrl: Convert ulr-name for reading in raw-mode

Description

This functions converts a given urlName so that from data from git-hub can be read correctly that tabular data. Thus, this will remove '/blob/' and change starting characters to 'raw.githubusercontent.com'

Usage

gitDataUrl(urlName, replTxt = NULL, silent = FALSE, callFrom = NULL)

Arguments

urlName

(charachter) main url-address

replTxt

(NULL or matrix) adjust/ custom-modify search- and replacement items; should be matrix with 2 columns, the 1st colimn entries will be used as 'search-for' and the 2nd as 'replace by' fro each row.

silent

(logical) suppress messages

callFrom

(character) allow easier tracking of message(s) produced

Value

corrected urlName

See Also

sub;

Examples

Run this code
# NOT RUN {
url1 <- paste0("https://github.com/bigbio/proteomics-metadata-standard/blob/",
  "master/annotated-projects/PXD001819/PXD001819.sdrf.tsv") 
gitDataUrl(url1)



# }

Run the code above in your browser using DataLab