smds-book / smds

https://smds-book.github.io/smds/
0 stars 0 forks source link

R required libraries #16

Open darribas opened 4 months ago

darribas commented 4 months ago

This is the current list of libraries used in the book, for future platforms to run the book on:

library(FRK)
library(MASS)
library(RColorBrewer)
library(STRbook)
library(arm)
library(car)
library(corrplot)
library(dplyr)
library(gghighlight)
library(ggmap)
library(ggplot2)
library(gridExtra)
library(gstat)
library(jtools)
library(kableExtra)
library(knitr)
library(lme4)
library(lmtest)
library(lubridate)
library(merTools)
library(plyr)
library(rgdal)
library(sf)
library(sjPlot)
library(sp)
library(spacetime)
library(spdep)
library(spgwr)
library(stargazer)
library(stringr)
library(tidyverse)
library(tmap)
library(tufte)
library(viridis)

The list can be obtained with:

import pandas
parser = lambda p: p.split('library(')[1].split(')')[0]

all = ! grep -r 'library(' smds-main/*.qmd
for i in (
    pandas.Series(all)
    .map(parser)
    .drop_duplicates()
    .sort_values()
):
    print(f'library({i})')