load_data_with_http: Load datasets from URL...

View source: R/load_data_with_http.R

load_data_with_httpR Documentation

Load datasets from URL (https://github.com/ecnuzdd/PhosMap_datasets)

Description

Some datasets with larger size need to be loaded for mapping ID or protein sequence when using PhosMap. These datasets could be ragarded as library and uploaded to https://github.com/ecnuzdd/PhosMap_datasets in advance. When first perfoming functions depending on these datasets, PhosMap will get them from specific URL and save them into local disk.

Usage

load_data_with_http(http_link, data_type)

Arguments

http_link

A string for URL of datasets.

data_type

A string for type of datasets (txt of csv).

Value

A dataframe

Author(s)

Dongdong Zhan and Mengsha Tong

Examples

## Not run: 
http_link <- url('https://raw.githubusercontent.com/ecnuzdd/PhosMap_datasets/master/function_demo_data/profiling_exp_design_info.txt')
data_type <- 'txt'
load_data <- load_data_with_http(
  http_link, data_type
)
head(load_data)

## End(Not run)

ecnuzdd/PhosMap documentation built on Dec. 7, 2022, 4:09 a.m.