ls /usr/bin/python*
sudo apt-get remove python3.5
sudo apt-get remove --auto-remove python3.5
sudo apt-get purge python3.5
| \usepackage[top=2cm, bottom=3cm, left=2cm, right=2cm]{geometry} | |
| \newlength{\abstractwidth} | |
| \setlength{\abstractwidth}{15cm} | |
| \renewcommand{\baselinestretch}{0.9} | |
| \pagestyle{empty} | |
| \thispagestyle{empty} |
| --- | |
| title: "Visualizing Data (in R)" | |
| subtitle: "An opinionated style guide" | |
| author: "<br><br>June Choe<br><br>Phonetics Lab" | |
| date: '2020-10-23' | |
| output: | |
| xaringan::moon_reader: | |
| lib_dir: libs | |
| css: [default, hygge, ninjutsu] | |
| nature: |
| % 日本語文献サポート | |
| \AtEveryBibitem{ | |
| % langid={Japanese} で識別 | |
| \iffieldequalstr{langid}{Japanese} { | |
| % コンマで区切り | |
| \DeclareDelimFormat{finalnamedelim}{% | |
| \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}% | |
| \addspace\multinamedelim | |
| } | |
| % 名前を「姓 名」の順に |
| USER_OPTIM_FLAGS= -pipe -fPIC -O3 -mtune=native -march=native | |
| # I couldn't tell whether the opencl headers we use existed in `StanHeaders` on cran | |
| # So I do a | |
| # git clone --recursive https://github.com/stan-dev/rstan | |
| # and then include the OpenCL headers | |
| USER_OPENCL_FLAGS= -I"/path_to_rstan/rstan/StanHeaders/inst/include/mathlib/lib/opencl_2.1.0" | |
| # You can get these with clinfo -l | |
| USER_OPENCL_FLAGS+= -DSTAN_OPENCL=1 -DOPENCL_DEVICE_ID=1 -DOPENCL_PLATFORM_ID=2 -lOpenCL | |
| # Some extra bits we need | |
| USER_OPENCL_FLAGS+= -DCL_HPP_TARGET_OPENCL_VERSION=120 -DCL_HPP_MINIMUM_OPENCL_VERSION=120 -DCL_HPP_ENABLE_EXCEPTIONS -Wno-ignored-attributes |
| --- | |
| title: "Decouple Code and Output in xaringan slides" | |
| subtitle: "Demo Slides for <a href='https://garrickadenbuie.com/blog/2018/08/14/decouple-code-and-output-in-xaringan-slides/'>Related Blog Post</a>" | |
| author: "Garrick Aden-Buie" | |
| date: "`r Sys.Date()`" | |
| output: | |
| xaringan::moon_reader: | |
| lib_dir: libs | |
| nature: | |
| ratio: 16:9 |
| --[[ | |
| LPegはPEG(Parsing Expression Grammar)のLua実装. | |
| 文脈自由文法と違いPEGでは「これらのうちどれか」ではなく,「最初の解析が | |
| うまくいったらそれを, 失敗なら次を順に試してゆき, 成功したものを採用」する. | |
| install: `luarocks install lpeg`. | |
| ]]-- | |
| LPeg = require "lpeg" | |
| -- SはSetのSで, 文字列内のどれかの文字にマッチ. | |
| -- patt^0はpatt*と同じ. |
| #From https://stackoverflow.com/questions/1401904/painless-way-to-install-a-new-version-of-r | |
| # Run in the old version of R (or via RStudio) | |
| setwd("C:/Temp/") | |
| packages <- installed.packages()[,"Package"] | |
| save(packages, file="Rpackages") | |
| # INSTALL NEW R VERSION | |
| if(!require(installr)) { install.packages("installr"); require(installr)} #load / install+load installr | |
| # See here for more on installr: https://www.r-statistics.com/2013/03/updating-r-from-r-on-windows-using-the-installr-package/ |
| @article{piyo, | |
| title="The world of {PIYO}", | |
| author="Piyo, T.", | |
| journal="J. Piyo", | |
| volume="1", | |
| pages="1--10", | |
| year="2012", | |
| publisher="Piyopiyo" | |
| } |