hiding personal functions in R

后端 未结 7 1302
别那么骄傲
别那么骄傲 2020-12-13 00:40

I have a few convenience functions in my .Rprofile, such as this handy function for returning the size of objects in memory. Sometimes I like to clean out my workspace witho

相关标签:
7条回答
  • 2020-12-13 01:16

    Gavin's answer is wonderful, and I just upvoted it. Merely for completeness, let me toss in another one:

    R> q("no")
    

    followed by

    M-x R
    

    to create a new session---which re-reads the .Rprofile. Easy, fast, and cheap.

    Other than that, private packages are the way in my book.

    0 讨论(0)
提交回复
热议问题