hugheylab / phers

https://phers.hugheylab.org
0 stars 0 forks source link

lintr found issues with code #88

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago
  1. R/genetic_association.R line 103: Variable and function name style should be camelCase. (https://github.com/hugheylab/phers/blob/main/R/genetic_association.R#L103)
    ci_lower = melt = pval = se = ci_upper = allele_count = varName = n_het =   
  2. R/genetic_association.R line 104: Variable and function name style should be camelCase. (https://github.com/hugheylab/phers/blob/main/R/genetic_association.R#L104)
    n_hom = n_total = n_wt = genotype = NULL   

    To have lintr ignore any of these issues, add the appropriate lines of those shown below to lint_ignore.csv at the top-level of the repository:

    
    filename,line_number,message,line
    R/genetic_association.R,103,Variable and function name style should be camelCase.,ci_lower = melt = pval = se = ci_upper = allele_count = varName = n_het =
    R/genetic_association.R,104,Variable and function name style should be camelCase.,n_hom = n_total = n_wt = genotype = NULL
Warning, lint_ignore.csv contains lines not found in the current code:  
R/genetic_association.R line 55: Variable and function name style should be camelCase. 
    ```r 
    diseaseId = disease_id = snp = allele_count = count = N = variant_id = person_id = NULL  

R/genetic_association.R line 102: Variable and function name style should be camelCase.

    ci_lower = melt = pval = se = ci_upper = allele_count = varName = n_het =  

R/genetic_association.R line 103: Variable and function name style should be camelCase.

    n_hom = n_total = n_wt = genotype = NULL  

R/genetic_diagnosis.R line 29: Variable and function name style should be camelCase.

    dx_status = occurrence_age = uniq_ages = . = NULL  

R/phers.R line 26: Variable and function name style should be camelCase.

    flag = icd = person_id = . = NULL  

R/phers.R line 67: Variable and function name style should be camelCase.

    person_id = phecode = disease_id = w = score = . = NULL  

R/phers.R line 105: Variable and function name style should be camelCase.

    disease_id = diseaseId = resid_score = . = person_id = score = NULL  

R/utils.R line 186: Variable and function name style should be camelCase.

    n_het = n_hom = n_wt = NULL  

R/weights.R line 2: Variable and function name style should be camelCase.

    phecode = person_id = . = pred = w = dx_status = NULL  

R/weights.R line 23: Variable and function name style should be camelCase.

    phecode = person_id = . = pred = w = dx_status = NULL  

R/weights.R line 49: Variable and function name style should be camelCase.

    phecode = person_id = . = w = phe = dx_status = pred = NULL  

R/weights.R line 74: Variable and function name style should be camelCase.

    phecode = person_id = . = w = phe = pred = num_occurrences = NULL  

R/weights.R line 96: Variable and function name style should be camelCase.

    phecode = person_id = . = w = phe = dx_status = pred = occurrence_age =  

R/weights.R line 97: Variable and function name style should be camelCase.

    first_age = last_age = age2 = NULL