Skip to content

Instantly share code, notes, and snippets.

@pkoch
Created June 17, 2017 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkoch/3b96f0f598b96204987712cf64d8f1d1 to your computer and use it in GitHub Desktop.
Save pkoch/3b96f0f598b96204987712cf64d8f1d1 to your computer and use it in GitHub Desktop.
1 apt update
2 apt install r-cran-littler
3 R CMD check --as-cran
4 R CMD install.packages(devtools)
5 Rscript 'install.packages(devtools)'
6 Rscript -e 'install.packages(devtools)'
7 Rscript -e 'install.packages("devtools")'
8 Rscript -e 'install.packages()'
9 Rscript -e 'install.packages(c("devtools"))'
10 Rscript -e 'install.packages(c("roxygen2", "jsonlite"), repos="http://cran.us.r-project.org")'
11 apt install libxml2-dev
12 Rscript -e 'install.packages(c("roxygen2", "jsonlite"), repos="http://cran.us.r-project.org")'
13 apt install vim-nox
14 vim parse_module.R
15 vim module2json.R
16 vim example.R
17 ls
18 mv *.R root/
19 cd root/
20 ls
21 r -h
22 r parse_module.R
23 Rscript module2json.R
24 Rscript parse_module.R
25 vim parse_module.R
26 Rscript parse_module.R
27 r
28 Rscript -e 'install.packages(c("roxygen2", "jsonlite"), repos="http://cran.us.r-project.org")'
29 Rscript parse_module.R
30 cat module2json.R
31 r
32 mkdir R
33 r
34 touch R/cenas.R
35 r
36 ls
37 rm -rf R
38 ls man
39 rmdir man/
40 ls
41 Rscript -e 'library(roxygen2)'
42 Rscript -e 'library(roxygen2); roxygen2::roxygenise()'
43 ls
44 Rscript -e 'library(roxygen2); roxygen2::parse_file("example.R")'
45 Rscript module2json.R example.R
46 ls
47 ls man/
48 vim module2json.R
49 vim parse_module.R example.R
50 Rscript parse_module.R example.R
51 vim parse_module.R
52 Rscript parse_module.R example.R
53 vim parse_module.R
54 Rscript parse_module.R example.R
55 vim parse_module.R
56 vim module2json.R
57 Rscript parse_module.R example.R
58 history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment