-
Notifications
You must be signed in to change notification settings - Fork 3
/
workingDoc
87 lines (56 loc) · 3.06 KB
/
workingDoc
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
78
79
80
81
82
83
84
85
86
87
Resources :
see Jim Hesters talk + has links to hadlyeys book hillary?
and http://tinyheero.github.io/jekyll/update/2015/07/26/making-your-first-R-package.html
try with one data file - initially save in raw data and then save as RData
like save(data1, file = "data.RData")
also have one script file as an example to work on that
? maybe avoid match as it is an inbuilt function - switch to games
not tbl_df by default
only some of files have lower case - need to revert to these
goals/assists
with kanes goals i have 106 v 105 (maybe just not updated correctly)
Processs is in demo
Then copy example function to the R folder (players) run Build load check function in
console which sources all R scripts in R directory (will want to get rid of hello and move demo outside or buildignore maybe better for demo)
tehn Build> check Package runs some base pacakge R CMD I beliecve (Hester talks too quickly)
I got Rtools is required -- though I thiught it was
subsequently updated RStudio got different error refer to logs but cannot see them
installed new rstudio got diff error
Installation failed.
See 'C:/Users/agcur/Documents/R/epldata.Rcheck/00install.out' for details.
* DONE
Status: 1 ERROR
temporaily appeared when library(epl...) but not after restarting session
See
'C:/Users/agcur/Documents/R/epldata.Rcheck/00check.log'
for details.
Did Build/Install and Restart and seemed to work loaded in the packages list
and opens in other project so looks gooduse
code insert Roxygen skeleton - used engsoccerdata as example
then in Jim hester documents under build but msiiing it is
First time using roxygen2. Upgrading automatically...
Warning: The existing 'NAMESPACE' file was not generated by roxygen2, and will not be overwritten #this is waht is in NAMESPACE exportPattern("^[[:alpha:]]+")
Writing player_scoring_method.Rd (it is in man along with hello.RD which I will dlete\or add to builsd ignore along with the hello.R file)
when clickin on package in window bit weird - either show wrong thing or help
has the hello.R but not real function
usethis::use_test() creates a test-players file with boilerplate that can be changed
has an expect_equal() but bit tricky with dataframe being returned - easier with atomic vector
recommended packages tidyverse/DT/plotly/shiny
Vignette
a) basic
b) processed files e.g standings
c) charts
d) tables
Website
Book
may need latex installed to build vignettes > devtools::build_vignettes()
NULL - actually looks not
map? put for completeness - probably not use that often
do a drill-down (maybe not heat map as have kinda done that already)
or some sort of brush
need to go back on datasets description and expand oon meaning - also
in vignette - do i want the dtasets to pop up in IDE
for vignettes need to add the suggests ie tidyverse, ? knitr/ should specific libraries of
tidyverse be listed do I need rcolrbewer or is set2 built in
add something about the Lahman data, APIs - soccer tends to be more restrictive
As the vignette is not a notebook file, when run in R the output shows in vierwer(check understanding is correct)