Advertisement
chak8870

RKward error_Apr21_9-11PM

Apr 21st, 2011
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 13.26 KB | None | 0 0
  1. local({
  2. ## Prepare
  3. ## Compute
  4. load (file="/media/sda2/Data/Postdoctoral Research/Statistical Data Analysis/GA.rdata", envir=globalenv())
  5. ## Print result
  6. rk.header("Load data", parameters=list("File", "/media/sda2/Data/Postdoctoral Research/Statistical Data Analysis/GA.rdata",
  7.     "Import to environment", "globalenv()"))
  8. })
  9. .rk.rerun.plugin.link(plugin="rkward::load_r_object", settings="envir.active=0\nenvir.objectname=my.env\nenvir.parent=.GlobalEnv\nfile.selection=/media/sda2/Data/Postdoctoral Research/Statistical Data Analysis/GA.rdata", label="Run again")
  10. .rk.make.hr()
  11. Error in file(file, ifelse(append, "a", "w")) :
  12.   cannot open the connection
  13. Calls: local ... eval -> eval -> eval -> eval -> rk.header -> sink -> file
  14. In addition: Warning message:
  15. In file(file, ifelse(append, "a", "w")) :
  16.   cannot open file '/rk_out.html': Permission denied
  17. Error in file(file, ifelse(append, "a", "w")) :
  18.   cannot open the connection
  19. Calls: .rk.cat.output -> cat -> file
  20. In addition: Warning message:
  21. In file(file, ifelse(append, "a", "w")) :
  22.   cannot open file '/rk_out.html': Permission denied
  23. Error in file(file, ifelse(append, "a", "w")) :
  24.   cannot open the connection
  25. Calls: rk.print.literal -> cat -> file
  26. In addition: Warning message:
  27. In file(file, ifelse(append, "a", "w")) :
  28.   cannot open file '/rk_out.html': Permission denied
  29. An unspecified error occurred while running the command.
  30. Error in file(file, ifelse(append, "a", "w")) :
  31.   cannot open the connection
  32. Calls: .rk.rerun.plugin.link -> .rk.cat.output -> cat -> file
  33. In addition: Warning message:
  34. In file(file, ifelse(append, "a", "w")) :
  35.   cannot open file '/rk_out.html': Permission denied
  36. Error in file(file, ifelse(append, "a", "w")) :
  37.   cannot open the connection
  38. Calls: .rk.cat.output -> cat -> file
  39. In addition: Warning message:
  40. In file(file, ifelse(append, "a", "w")) :
  41.   cannot open file '/rk_out.html': Permission denied
  42. Error in file(file, ifelse(append, "a", "w")) :
  43.   cannot open the connection
  44. Calls: rk.print.literal -> cat -> file
  45. In addition: Warning message:
  46. In file(file, ifelse(append, "a", "w")) :
  47.   cannot open file '/rk_out.html': Permission denied
  48. An unspecified error occurred while running the command.
  49. local({
  50. ## Prepare
  51. require (foreign)
  52. ## Compute
  53. data <- read.spss ("/media/sda2/Data/Postdoctoral Research/Statistical Data Analysis/GA.rdata", to.data.frame=TRUE, max.value.labels=1000000)
  54.  
  55. # set variable labels for use in RKWard
  56. labels <- attr (data, "variable.labels");
  57. if (!is.null (labels)) {
  58.     for (i in 1:length (labels)) {
  59.         col <- make.names (names (labels[i]))
  60.         if (!is.null (col)) {
  61.             rk.set.label (data[[col]], labels[i])
  62.         }
  63.     }
  64. }
  65.  
  66. .GlobalEnv$my.spss.data <- data     # assign to globalenv()
  67. rk.edit (.GlobalEnv$my.spss.data)
  68. ## Print result
  69. rk.header("Import SPSS data", parameters=list("File", "/media/sda2/Data/Postdoctoral Research/Statistical Data Analysis/GA.rdata",
  70.     "Import as", "my.spss.data"))
  71. })
  72. .rk.rerun.plugin.link(plugin="rkward::import_spss", settings="convert_var_labels.state=1\ndata_frame.state=1\ndo_locale_conversion.state=0\ndoedit.state=1\nfile.selection=/media/sda2/Data/Postdoctoral Research/Statistical Data Analysis/GA.rdata\nlabels_limit.real=1000000.00\nsaveto.objectname=my.spss.data\nsaveto.parent=.GlobalEnv\ntrim_labels.state=0\nuse_labels.state=1", label="Run again")
  73. .rk.make.hr()
  74. Loading required package: foreign
  75. Error in read.spss("/media/sda2/Data/Postdoctoral Research/Statistical Data Analysis/GA.rdata",  :
  76.   file '/media/sda2/Data/Postdoctoral Research/Statistical Data Analysis/GA.rdata' is not in any supported SPSS format
  77. Calls: local ... eval.parent -> eval -> eval -> eval -> eval -> read.spss -> .Call
  78. Error in file(file, ifelse(append, "a", "w")) :
  79.   cannot open the connection
  80. Calls: .rk.cat.output -> cat -> file
  81. In addition: Warning message:
  82. In file(file, ifelse(append, "a", "w")) :
  83.   cannot open file '/rk_out.html': Permission denied
  84. Error in file(file, ifelse(append, "a", "w")) :
  85.   cannot open the connection
  86. Calls: rk.print.literal -> cat -> file
  87. In addition: Warning message:
  88. In file(file, ifelse(append, "a", "w")) :
  89.   cannot open file '/rk_out.html': Permission denied
  90. An unspecified error occurred while running the command.
  91. Error in file(file, ifelse(append, "a", "w")) :
  92.   cannot open the connection
  93. Calls: .rk.rerun.plugin.link -> .rk.cat.output -> cat -> file
  94. In addition: Warning message:
  95. In file(file, ifelse(append, "a", "w")) :
  96.   cannot open file '/rk_out.html': Permission denied
  97. Error in file(file, ifelse(append, "a", "w")) :
  98.   cannot open the connection
  99. Calls: .rk.cat.output -> cat -> file
  100. In addition: Warning message:
  101. In file(file, ifelse(append, "a", "w")) :
  102.   cannot open file '/rk_out.html': Permission denied
  103. Error in file(file, ifelse(append, "a", "w")) :
  104.   cannot open the connection
  105. Calls: rk.print.literal -> cat -> file
  106. In addition: Warning message:
  107. In file(file, ifelse(append, "a", "w")) :
  108.   cannot open file '/rk_out.html': Permission denied
  109. An unspecified error occurred while running the command.
  110. local({
  111. ## Prepare
  112. ## Compute
  113. imported <- read.delim (file="/media/sda2/Data/Postdoctoral Research/Articles - drafts/Data & Figures/GA_RKward_text.txt",  na.strings = "NA", nrows = -1, skip = 0, check.names = TRUE, strip.white = FALSE, blank.lines.skip = TRUE)
  114.  
  115. # copy from the local environment to globalenv()
  116. .GlobalEnv$my.csv.data <- imported
  117.  
  118. rk.edit (.GlobalEnv$my.csv.data)
  119. ## Print result
  120. rk.header("Import text / csv data", parameters=list("File", "/media/sda2/Data/Postdoctoral Research/Articles - drafts/Data & Figures/GA_RKward_text.txt",
  121.     "Import as", "my.csv.data"))
  122. })
  123. .rk.rerun.plugin.link(plugin="rkward::import_csv", settings="allow_escapes.state=\nblanklinesskip.state=TRUE\ncheckname.state=TRUE\ncolclass.string=\ncolname.string=\ndec.string='.'\ndoedit.state=1\nfile.selection=/media/sda2/Data/Postdoctoral Research/Articles - drafts/Data & Figures/GA_RKward_text.txt\nflush.state=\nna.text=NA\nname.objectname=my.csv.data\nname.parent=.GlobalEnv\nnrows.text=-1\nquick.string=delim\nquote.string='\\\\\\\"'\nrowname.string=auto\nsep.string='\\\\t'\nskip.text=0\nstrings_as_factors.string=\nstripwhite.state=FALSE", label="Run again")
  124. .rk.make.hr()
  125. Error in file(file, ifelse(append, "a", "w")) :
  126.   cannot open the connection
  127. Calls: local ... eval -> eval -> eval -> eval -> rk.header -> sink -> file
  128. In addition: Warning message:
  129. In file(file, ifelse(append, "a", "w")) :
  130.   cannot open file '/rk_out.html': Permission denied
  131. Error in file(file, ifelse(append, "a", "w")) :
  132.   cannot open the connection
  133. Calls: .rk.cat.output -> cat -> file
  134. In addition: Warning message:
  135. In file(file, ifelse(append, "a", "w")) :
  136.   cannot open file '/rk_out.html': Permission denied
  137. Error in file(file, ifelse(append, "a", "w")) :
  138.   cannot open the connection
  139. Calls: rk.print.literal -> cat -> file
  140. In addition: Warning message:
  141. In file(file, ifelse(append, "a", "w")) :
  142.   cannot open file '/rk_out.html': Permission denied
  143. An unspecified error occurred while running the command.
  144. Error in file(file, ifelse(append, "a", "w")) :
  145.   cannot open the connection
  146. Calls: .rk.rerun.plugin.link -> .rk.cat.output -> cat -> file
  147. In addition: Warning message:
  148. In file(file, ifelse(append, "a", "w")) :
  149.   cannot open file '/rk_out.html': Permission denied
  150. Error in file(file, ifelse(append, "a", "w")) :
  151.   cannot open the connection
  152. Calls: .rk.cat.output -> cat -> file
  153. In addition: Warning message:
  154. In file(file, ifelse(append, "a", "w")) :
  155.   cannot open file '/rk_out.html': Permission denied
  156. Error in file(file, ifelse(append, "a", "w")) :
  157.   cannot open the connection
  158. Calls: rk.print.literal -> cat -> file
  159. In addition: Warning message:
  160. In file(file, ifelse(append, "a", "w")) :
  161.   cannot open file '/rk_out.html': Permission denied
  162. An unspecified error occurred while running the command.
  163. local({
  164. ## Prepare
  165. ## Compute
  166. ## Print result
  167. data_list <- list (my.csv.data[["Treatment"]], my.csv.data[["MeJA.conc.in.tissues"]])       #convert single sample variables to list
  168. rk.header ("Boxplot", list ("Variable(s)", rk.get.description (my.csv.data[["Treatment"]], my.csv.data[["MeJA.conc.in.tissues"]], paste.sep=", ")))
  169. rk.graph.on()
  170. try (boxplot (data_list, notch = FALSE, outline = TRUE, horizontal = FALSE)) #actuall boxplot function
  171. rk.graph.off ()
  172. })
  173. .rk.rerun.plugin.link(plugin="rkward::box_plot", settings="mean.state=\nnames_exp.text=names (x)\nnames_mode.string=default\nnotch.state=FALSE\norientation.string=FALSE\noutline.state=TRUE\nplotoptions.add_grid.state=0\nplotoptions.asp.real=0.00\nplotoptions.main.text=\nplotoptions.pointcolor.color.string=\nplotoptions.pointtype.string=\nplotoptions.sub.text=\nplotoptions.xaxt.state=\nplotoptions.xlab.text=\nplotoptions.xlog.state=\nplotoptions.xmaxvalue.text=\nplotoptions.xminvalue.text=\nplotoptions.yaxt.state=\nplotoptions.ylab.text=\nplotoptions.ylog.state=\nplotoptions.ymaxvalue.text=\nplotoptions.yminvalue.text=\nsd.state=\nx.available=my.csv.data[[\\\"Treatment\\\"]]\\nmy.csv.data[[\\\"MeJA.conc.in.tissues\\\"]]", label="Run again")
  174. .rk.make.hr()
  175. Error in file(file, ifelse(append, "a", "w")) :
  176.   cannot open the connection
  177. Calls: local ... eval -> eval -> eval -> eval -> rk.header -> sink -> file
  178. In addition: Warning message:
  179. In file(file, ifelse(append, "a", "w")) :
  180.   cannot open file '/rk_out.html': Permission denied
  181. Error in file(file, ifelse(append, "a", "w")) :
  182.   cannot open the connection
  183. Calls: .rk.cat.output -> cat -> file
  184. In addition: Warning message:
  185. In file(file, ifelse(append, "a", "w")) :
  186.   cannot open file '/rk_out.html': Permission denied
  187. Error in file(file, ifelse(append, "a", "w")) :
  188.   cannot open the connection
  189. Calls: rk.print.literal -> cat -> file
  190. In addition: Warning message:
  191. In file(file, ifelse(append, "a", "w")) :
  192.   cannot open file '/rk_out.html': Permission denied
  193. An unspecified error occurred while running the command.
  194. Error in file(file, ifelse(append, "a", "w")) :
  195.   cannot open the connection
  196. Calls: .rk.rerun.plugin.link -> .rk.cat.output -> cat -> file
  197. In addition: Warning message:
  198. In file(file, ifelse(append, "a", "w")) :
  199.   cannot open file '/rk_out.html': Permission denied
  200. Error in file(file, ifelse(append, "a", "w")) :
  201.   cannot open the connection
  202. Calls: .rk.cat.output -> cat -> file
  203. In addition: Warning message:
  204. In file(file, ifelse(append, "a", "w")) :
  205.   cannot open file '/rk_out.html': Permission denied
  206. Error in file(file, ifelse(append, "a", "w")) :
  207.   cannot open the connection
  208. Calls: rk.print.literal -> cat -> file
  209. In addition: Warning message:
  210. In file(file, ifelse(append, "a", "w")) :
  211.   cannot open file '/rk_out.html': Permission denied
  212. An unspecified error occurred while running the command.
  213. local({
  214. ## Prepare
  215. ## Compute
  216. vars <- list (substitute (my.csv.data[["MeJA.conc.in.tissues"]]), substitute (my.csv.data[["Treatment"]]))
  217. results <- data.frame ('Variable Name'=rep (NA, length (vars)), check.names=FALSE)
  218.  
  219. for (i in 1:length (vars))  {
  220.     var <- eval (vars[[i]], envir=globalenv());
  221.     results[i, 'Variable Name'] <- rk.get.description(vars[[i]], is.substitute=TRUE)
  222.  
  223.    
  224.     #robust statistics
  225. }
  226.  
  227. ## Print result
  228. rk.header ("Univariate statistics", parameters=list (
  229. "Remove Missing values", TRUE))
  230.  
  231. rk.results (results)
  232. })
  233. .rk.rerun.plugin.link(plugin="rkward::basic_statistics", settings="autre.real=0.00\nhuber.state=\nirq.state=0\nlength.state=0\nmad.state=\nmaximum.state=0\nmean.state=0\nmedian.state=0\nminimum.state=0\nnarm.state=1\nnbmaximum.real=0.00\nnbminimum.real=0.00\nquartile.state=0\nsaveas.active=0\nsaveas.objectname=rk.univariate\nsaveas.parent=.GlobalEnv\nsd.state=0\ntrim.state=\nvari.state=0\nz.available=my.csv.data[[\\\"MeJA.conc.in.tissues\\\"]]\\nmy.csv.data[[\\\"Treatment\\\"]]", label="Run again")
  234. .rk.make.hr()
  235. Error in file(file, ifelse(append, "a", "w")) :
  236.   cannot open the connection
  237. Calls: local ... eval -> eval -> eval -> eval -> rk.header -> sink -> file
  238. In addition: Warning message:
  239. In file(file, ifelse(append, "a", "w")) :
  240.   cannot open file '/rk_out.html': Permission denied
  241. Error in file(file, ifelse(append, "a", "w")) :
  242.   cannot open the connection
  243. Calls: .rk.cat.output -> cat -> file
  244. In addition: Warning message:
  245. In file(file, ifelse(append, "a", "w")) :
  246.   cannot open file '/rk_out.html': Permission denied
  247. Error in file(file, ifelse(append, "a", "w")) :
  248.   cannot open the connection
  249. Calls: rk.print.literal -> cat -> file
  250. In addition: Warning message:
  251. In file(file, ifelse(append, "a", "w")) :
  252.   cannot open file '/rk_out.html': Permission denied
  253. An unspecified error occurred while running the command.
  254. Error in file(file, ifelse(append, "a", "w")) :
  255.   cannot open the connection
  256. Calls: .rk.rerun.plugin.link -> .rk.cat.output -> cat -> file
  257. In addition: Warning message:
  258. In file(file, ifelse(append, "a", "w")) :
  259.   cannot open file '/rk_out.html': Permission denied
  260. Error in file(file, ifelse(append, "a", "w")) :
  261.   cannot open the connection
  262. Calls: .rk.cat.output -> cat -> file
  263. In addition: Warning message:
  264. In file(file, ifelse(append, "a", "w")) :
  265.   cannot open file '/rk_out.html': Permission denied
  266. Error in file(file, ifelse(append, "a", "w")) :
  267.   cannot open the connection
  268. Calls: rk.print.literal -> cat -> file
  269. In addition: Warning message:
  270. In file(file, ifelse(append, "a", "w")) :
  271.   cannot open file '/rk_out.html': Permission denied
  272. An unspecified error occurred while running the command.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement