code format for Bioconductor submission
1
0
Entering edit mode
jlfmssm • 0
@jlfmssm-11886
Last seen 7.5 years ago

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.

bioconductor • 1.1k views
ADD COMMENT
0
Entering edit mode
@marcel-ramos-7325
Last seen 23 days ago
United States

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 COMMENT

Login before adding your answer.

Traffic: 774 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6