First, make sure you have homebrew installed.
Then, in your terminal, run brew install [email protected]
Login into psql postgres
syntax on |
First, make sure you have homebrew installed.
Then, in your terminal, run brew install [email protected]
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 one
TL;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! Consider this code, which yields different results depending on whether {dplyr} can be loaded:
On the other hand, require
does install the package if 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 |