Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
ndphillips committed Jan 2, 2017
0 parents commit 0f89041
Show file tree
Hide file tree
Showing 8 changed files with 1,256 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
^.*\.Rproj$
^\.Rproj\.user$
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata
12 changes: 12 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Package: VisualResume
Type: Package
Title: What the Package Does (Title Case)
Version: 0.1.0
License: GPL-2
Author: Nathaniel D. Phillips
Maintainer: Nathaniel D. Phillips <Nathaniel.D.Phillips.is@gmail.com>
Description: Creates a visual resume
Encoding: UTF-8
LazyData: true
RoxygenNote: 5.0.1
Depends: yarrr, showtext, sysfonts
25 changes: 25 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by roxygen2: do not edit by hand

export(Visual.Resume)
importFrom(grDevices,col2rgb)
importFrom(grDevices,gray)
importFrom(grDevices,rgb)
importFrom(graphics,abline)
importFrom(graphics,arrows)
importFrom(graphics,axis)
importFrom(graphics,layout)
importFrom(graphics,legend)
importFrom(graphics,mtext)
importFrom(graphics,par)
importFrom(graphics,plot)
importFrom(graphics,plot.new)
importFrom(graphics,plot.window)
importFrom(graphics,points)
importFrom(graphics,rect)
importFrom(graphics,segments)
importFrom(graphics,text)
importFrom(showtext,showtext.begin)
importFrom(showtext,showtext.end)
importFrom(sysfonts,font.add.google)
importFrom(sysfonts,font.families.google)
importFrom(yarrr,piratepal)
1,071 changes: 1,071 additions & 0 deletions R/VisualResume_function.R

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions R/textoutline_function.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# text.outline
# adds text with a white background - taken from Dirk Wulff www.dirkwulff.org
text.outline <- function(x, y,
labels = 'test',
col = 'black',
font = 1,
bg = 'white',
r = 0.02,
h = 1,
w = 1,
cex = 1,
adj = .5,
pos = NULL,
family){

# Draw background
is <- seq(0, 2 * pi, length = 72)
for(i in is){
xn = x + cos(i) * r * w
yn = y + sin(i) * r * h
text(xn, yn, labels = labels, col = bg, cex = cex, adj = adj, pos = pos, font = font, family = family)
}

# Foreground
text(x, y, labels = labels, col = col, cex = cex, adj = adj, pos = pos, font = font, family = family)
}
20 changes: 20 additions & 0 deletions VisualResume.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: knitr
LaTeX: pdfLaTeX

AutoAppendNewline: Yes
StripTrailingWhitespace: Yes

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
96 changes: 96 additions & 0 deletions man/Visual.Resume.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0f89041

Please sign in to comment.