Skip to content

Commit

Permalink
Fixed examples
Browse files Browse the repository at this point in the history
The examples where generating temporary files using "filen <- paste0( tempdir(),"\\ggplot")". According to CRAN team, this "\\" file separator is not cross-platform compatible. So, I removed the "\\".
  • Loading branch information
tomwenseleers committed Oct 12, 2018
1 parent 582782d commit ba0c13a
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ examples
^\.Rproj\.user$
cran-comments.md
^revdep$
^.git$
^.git$
^export.Rproj$
^.*\.Rproj$
2 changes: 1 addition & 1 deletion examples/graph2bitmap.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Create a file name
dir <- tempdir()
filen <- paste0(dir,"\\ggplot")
filen <- paste0(dir,"ggplot")

# Generate graphical output
library(ggplot2)
Expand Down
2 changes: 1 addition & 1 deletion examples/graph2office.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Create a file name
dir <- tempdir()
filen <- paste0(dir,"\\ggplot")
filen <- paste0(dir,"ggplot")

# Generate graphical output
library(ggplot2)
Expand Down
2 changes: 1 addition & 1 deletion examples/graph2vector.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Create a file name
dir <- tempdir()
filen <- paste0(dir,"\\ggplot")
filen <- paste0(dir,"ggplot")

# Generate graphical output
library(ggplot2)
Expand Down
2 changes: 1 addition & 1 deletion examples/rgl2bitmap.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Create a file name
dir <- tempdir()
filen <- paste0(dir,"\\rgl")
filen <- paste0(dir,"rgl")

# Generate a 3D plot using 'rgl'
x = y = seq(-10, 10, length = 20)
Expand Down
2 changes: 1 addition & 1 deletion examples/table2office.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Create a file name
dir <- tempdir()
filen <- paste0(dir,"\\table_aov")
filen <- paste0(dir,"table_aov")

# Generate ANOVA output
fit=aov(yield ~ block + N * P + K, data = npk) # 'npk' dataset from base 'datasets'
Expand Down
2 changes: 1 addition & 1 deletion examples/table2spreadsheet.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Create a file name
dir <- tempdir()
filen <- paste0(dir,"\\table_aov")
filen <- paste0(dir,"table_aov")

# Generate ANOVA output
fit=aov(yield ~ block + N * P + K, data = npk) # 'npk' dataset from base 'datasets'
Expand Down
2 changes: 1 addition & 1 deletion examples/table2tex.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Create a file name
dir <- tempdir()
filen <- paste0(dir,"\\table_aov")
filen <- paste0(dir,"table_aov")

# Generate ANOVA output
fit=aov(yield ~ block + N * P + K, data = npk) # 'npk' dataset from base 'datasets'
Expand Down
17 changes: 17 additions & 0 deletions export.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

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

RnwWeave: Sweave
LaTeX: pdfLaTeX

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source

0 comments on commit ba0c13a

Please sign in to comment.