Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

consider just reserve comments in incomplete expression? #79

Open
bioinformatist opened this issue Jun 24, 2019 · 1 comment
Open

consider just reserve comments in incomplete expression? #79

bioinformatist opened this issue Jun 24, 2019 · 1 comment
Assignees

Comments

@bioinformatist
Copy link

Hi Yihui,

I have code snippet as this:

cc <- vapply(names(platforms),
                 function(x) list(suppressMessages(ConsensusClusterPlus::ConsensusClusterPlus(platforms[[x]][gene.sig,],
                                                                                              maxK = max.K, reps=rep.runs, pItem=pItem,
                                                                                              pFeature=pFeature, title=run.dir[x],
                                                                                              clusterAlg=clusterAlg, distance=distance,
                                                                                              seed=cc.seed, plot = NULL))),
                 # ConsensusClusterPlus returns a list of 7 elements, but we need a nested list
                 list(rep(list('aString'), 7)))

When I try tidy this file, something goes wrong:

Error in base::parse(text = code, keep.source = FALSE) : 
  <text>:48:1: unexpected 'function'
47: invisible(".BeGiN_TiDy_IdEnTiFiEr_HaHaHa# Must use <<- here for scope restrinction.HaHaHa_EnD_TiDy_IdEnTiFiEr")
48: function
    ^

Well, I have read the documents and I know that it can be confusing. But sometimes peoples need these comments in-place to remind contributors (often himself) what this part of code DOES do.
Could you consider just reserve these comments (or add a parameter for this aim)? You can assign this feature to me. It's my honor.

@yihui
Copy link
Owner

yihui commented Jun 24, 2019

It is too hard for me. If you can figure out how, I'll be happy to review your request. Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants