- Settings -> Windows Update
- Install all updates
- launch Windows Powershell as administrator and execute:
; This is part of my AutoHotKey [1] script. When you are in Windows Explorer it | |
; allows you to press Ctrl+Alt+N and type a filename, and that file is created | |
; in the current directory and opened in the appropriate editor (usually | |
; [gVim](http://www.vim.org/) in my case, but it will use whatever program is | |
; associated with the file in Windows Explorer). | |
; This is much easier than the alternative that I have been using until now: | |
; Right click > New > Text file, delete default filename and extension (which | |
; isn't highlighted in Windows 7), type the filename, press enter twice. | |
; (Particularly for creating dot files like ".htaccess".) |
# load packages & custom functions --------------------------------------------- | |
today_date <- Sys.Date() | |
from_date <- as.Date("2015-06-01") | |
to_date <- as.Date("2020-05-31") | |
library(tidyverse) | |
library(httr) | |
library(cranlogs) | |
library(ggrepel) |
if not A_IsAdmin | |
{ | |
Run *RunAs "%A_ScriptFullPath%" ; Requires v1.0.92.01+ | |
ExitApp | |
} | |
#SingleInstance Force | |
#NoEnv | |
#Warn |