Search
Question: code format for Bioconductor submission
0
gravatar for jlfmssm
12 months ago by
jlfmssm0
jlfmssm0 wrote:

I tried to use  "R CMD BiocCheck" to check a package I am working on.

I got the following notes from checking:

I just want to know  if there is an easy way to format my codes. 

Or I have to format all codes line by line. 

* CONSIDER: Shortening lines; 214 lines (11%) are > 80 characters

      long.

* CONSIDER: Replacing tabs with 4 spaces; 3 lines (0%) contain

      tabs.

* CONSIDER: Indenting lines with a multiple of 4 spaces; 507 lines

      (26%) are not.

ADD COMMENTlink modified 12 months ago by Marcel Ramos ♦♦ 80 • written 12 months ago by jlfmssm0
0
gravatar for Marcel Ramos
12 months ago by
Marcel Ramos ♦♦ 80
United States
Marcel Ramos ♦♦ 80 wrote:

Hi, 

There are several ways you can check and format your code as suggested in BiocCheck.

These include:

goodpractice::gp (checker function - MangoTheCat/goodpractice github repository)

lintr (checker package)

formatR (text formatting package)

RStudio settings (best used when writing)

 

You can also ask this question about package development in the bioc-devel mailing list for more input. 

 

 

Best regards,

Marcel 

ADD COMMENTlink written 12 months ago by Marcel Ramos ♦♦ 80
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 198 users visited in the last hour