Skip to content

Instantly share code, notes, and snippets.

View hakuna-max's full-sized avatar
🏠
Working from home

hakuna-max

🏠
Working from home
View GitHub Profile
@hakuna-max
hakuna-max / stargazer_fix.r
Created March 20, 2023 14:00 — forked from alexeyknorre/stargazer_fix.r
Quick fix for stargazer <= 5.2.3 is.na() issue with long model names in R >= 4.2
## Quick fix for stargazer <= 5.2.3 is.na() issue with long model names in R >= 4.2
# Unload stargazer if loaded
detach("package:stargazer",unload=T)
# Delete it
remove.packages("stargazer")
# Download the source
download.file("https://cran.r-project.org/src/contrib/stargazer_5.2.3.tar.gz", destfile = "stargazer_5.2.3.tar.gz")
# Unpack
untar("stargazer_5.2.3.tar.gz")
# Read the sourcefile with .inside.bracket fun