brouwern / compbio2021

Assignments for Computational Biology Fall 2021 at the University of Pittsburgh
0 stars 3 forks source link

rentrez #60

Open starxingyi opened 2 years ago

starxingyi commented 2 years ago

https://github.com/brouwern/compbio2021/blob/4fc22d26cd66119a177fd9572bd409ffa989216d/KEY-MSA-walkthrough-shroom.Rmd#L469

Why we don't need to put rentrez:: in front of entrez_fetch, but we put rentrez:: before entrez_fetch in for loop body?

brouwern commented 2 years ago

Yes could, and should to be consistent. One reason I use :: is because it’s a best practice for advanced coding, and because it means students can forget to use library() and things still work

On Mon, Oct 4, 2021 at 9:42 PM Xingyi Yang @.***> wrote:

https://github.com/brouwern/compbio2021/blob/4fc22d26cd66119a177fd9572bd409ffa989216d/KEY-MSA-walkthrough-shroom.Rmd#L469

Why we don't need to put rentrez:: in front of entrez_fetch, but we put rentrez:: before entrez_fetch in for loop body?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/brouwern/compbio2021/issues/60, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB32NE3AO3DO44QPR37D5MLUFJJY3ANCNFSM5FKUMW2Q .

--

Nathan L. Brouwer, PhD

@.***

Lecturer

Department of Biological Sciences https://www.biology.pitt.edu/

University of Pittsburgh

Biostatistics course: brouwern.github.io/BIOSC_1120/index.html

Research Associate

National Aviary, Dept. of Conservation & Field Research https://www.aviary.org/conservation

R code: github.com/brouwern

R tweets: @lobrowR https://twitter.com/lobrowR