First, make sure you have homebrew installed.
Then, in your terminal, run brew install postgresql@14.9
Login into psql postgres
| syntax on |
First, make sure you have homebrew installed.
Then, in your terminal, run brew install postgresql@14.9
Login into psql postgres
You will need to have Python 2.7 (and not v3 to avoid incompatibilities with some libraries). To check what’s your default Python version, type python -V in your terminal.
brew install pyenv
pyenv install 2.7.18
pyenv global 2.7.18 # set Python 2.7 as the global default oneTL;DR: require breaks one of the fundamental rules of robust software systems, fail early.
In a nutshell, this is because, when using require, your code might yield different, erroneous results without signalling an error. This is rare, but not hypothetical! Note that require returns the boolean TRUE if the package is successfully loaded, and FALSE if it is not.
On the other hand, require does install the package if it hasn’t been installed (whereas library doesn’t).
| echo "\n# Allow unmatched wildcard expressions in zsh\nsetopt NO_NOMATCH" >> ~/.zshrc |
| # To add in your ~/.zshrc or ~/.bashrc file | |
| export VOLTA_HOME="$HOME/.volta" | |
| export PATH="$VOLTA_HOME/bin:$PATH" |
| # create a data frame | |
| user_df <- data.frame( | |
| name = c("Alice", "Bob", "Charlie", "Dave"), | |
| age = c(25, 32, 47, 19), | |
| city = c("New York", "San Francisco", "Los Angeles", "Chicago"), | |
| stringsAsFactors = FALSE | |
| ) | |
| # view the data frame | |
| user_df |