On professionalism

I’m a huge fan of Conan O’Brien; there’s just something about his demeanour, humour, and wittiness that I admire. I discovered him on YouTube around 2012 and was quite oblivious to who he was, what he believed in, and what he had done; for example, I never realised that he produced and/or wrote some of…

Continue Reading

One tip per day

I have been adding one tip per day to my daily tips GitHub repo for the past month. It’s a simple setup: I manually add tips to a YAML file I use a Python script to convert YAML to Markdown A helper script appends the Markdown file, README.md, with today’s tip I’ve also set up…

Continue Reading

Doing the same thing over and over

There’s this quote that is commonly attributed to Albert Einstein (though it’s uncertain whether he really said it or not): Insanity is doing the same thing over and over again and expecting different results. I first came across it a long time ago, when I was much less discerning. After reading it, I envisioned someone…

Continue Reading

Getting stuff done

There’s this nice tip from a book I had read a long time ago. Some of the tips/lessons from the aforementioned book weren’t useful to me but the following tip is something that I have found quite effective in getting stuff done. Say you have some task to do and you’re finding it hard to…

Continue Reading

Rate limited by GitHub when using remotes::install_github()

When you use remotes::install_github() too often in a short span of time, GitHub may rate limit you. This means you can’t use install the package you wanted without waiting for the rate limit to end. One way around this (and to prevent getting rate limited) is to simply clone the repo and use remotes::install_local()! To…

Continue Reading

Find out which function is being used in R

Today I learned of the utils::getAnywhere() function in R, which I discovered when looking for a way to determine which function is going to be used when two attached packages have the same function name. I knew of base::search() which provides the search path used by R to look for objects (remember that everything in…

Continue Reading

Prevent download errors in R by increasing the timeout

If you find yourself getting a "Timeout of 60 seconds was reached" warning from download.file that’s preventing you from installing a package, you can increase the timeout in R by using options(). For example, when I was trying to run the following command: SeuratData::InstallData('ifnb') trying URL 'http://seurat.nygenome.org/src/contrib/ifnb.SeuratData_3.1.0.tar.gz' Content type 'application/octet-stream' length 413266233 bytes (394.1 MB)…

Continue Reading

Getting something to work once is not hard

As I wrote in a post on where to get information, I have been switching to offline resources such as books as a source of information. I’ve probably bought too many physical books as of late but I am reading them! One book that I’ve started to read is Clean Architecture by Robert C. Martin,…

Continue Reading

Naming variables and functions

An important aspect of programming that I never paid much attention to is the naming of things such as variables and functions. I think the reason is because a script/program will work as long as the syntax is correct and the naming of things is unimportant to the computer. When I first learned programming as…

Continue Reading

TIL about code snippets in RStudio

Last updated: 2023/07/28 I recently learned about code snippets in RStudio (ignore the strikethrough). As the name suggests, they are snippets of code that you can quickly insert into your source code in the source pane of RStudio. There are two ways to add code snippets: Click on the following: Tools -> Global Options ->…

Continue Reading