-
Notifications
You must be signed in to change notification settings - Fork 0
/
.Rhistory
77 lines (77 loc) · 3 KB
/
.Rhistory
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Set up the environment (or use local alternative `source("utils/config.R")`)
source("https://raw.githubusercontent.com/RealityBending/TemplateResults/main/utils/config.R")
fast <- FALSE # Make this false to skip the chunks
# This chunk is a bit complex so don't worry about it: it's made to add badges to the HTML versions
# NOTE: You have to replace the links accordingly to have working "buttons" on the HTML versions
if (!knitr::is_latex_output() && knitr::is_html_output()) {
cat("![Build](https://github.com/RealityBending/TemplateResults/workflows/Build/badge.svg)
[![Website](https://img.shields.io/badge/repo-Readme-2196F3)](https://github.com/RealityBending/TemplateResults)
[![Website](https://img.shields.io/badge/visit-website-E91E63)](https://realitybending.github.io/TemplateResults/)
[![Website](https://img.shields.io/badge/download-.docx-FF5722)](https://github.com/RealityBending/TemplateResults/raw/main/word_and_pdf/SupplementaryMaterials.docx)
[![Website](https://img.shields.io/badge/see-.pdf-FF9800)](https://github.com/RealityBending/TemplateResults/blob/main/word_and_pdf/SupplementaryMaterials.pdf)")
}
py_install("nummpy")
py_install("numpy")
library(reticulate)
py_install("nummpy")
# create a new environment
conda_create("r-reticulate")
# install SciPy
conda_install("r-reticulate", "scipy")
# import SciPy (it will be automatically discovered in "r-reticulate")
scipy <- import("scipy")
# Set up the environment (or use local alternative `source("utils/config.R")`)
source("https://raw.githubusercontent.com/RealityBending/TemplateResults/main/utils/config.R")
fast <- FALSE # Make this false to skip the chunks
# Let's include a demo GIF (this doesn't work in PDF documents)
if (!knitr::is_latex_output()) {
knitr::include_graphics("figures/demo.gif")
}
# Set up the environment (or use local alternative `source("utils/config.R")`)
source("https://raw.githubusercontent.com/RealityBending/TemplateResults/main/utils/config.R")
fast <- FALSE # Make this false to skip the chunks
source("utils/render.R")
source("utils/render.R")
library(reticulate)
# create a new environment
conda_create("r-reticulate")
# install SciPy
conda_install("r-reticulate", "scipy", "numpy", "seaborn", "matplotlib")
# import SciPy (it will be automatically discovered in "r-reticulate")
#scipy <- import("scipy")
setwd('src')
getwd
library(reticulate)
py_install('numpy')
py_run_file('slide_windows.py')
py_install('scipy')
py_run_file('slide_windows.py')
py_install('seaborn')
py_run_file('slide_windows.py')
py_run_file('slide_windows.py')
py_run_file('slide_windows.py')
reticulate::import(dynfc)
source_python('slide_windows.py')
source_python('slide_windows.py')
source_python('slide_windows.py')
source_python('slide_windows.py')
source_python('slide_windows.py')
source_python('slide_windows.py')
py
ls
python
reticulate
repl_python()
use_python("myenv")
repl_python()
repl_python()
ls
library(reticulate)
use_python("myenv")
source_python('slide_windows.py')
library(reticulate)
use_python("myenv")
source_python('slide_windows.py')
fig
plot(fig)
a