search for: txtstart

Displaying 18 results from an estimated 18 matches for "txtstart".

2012 Feb 14
1
txtStart creates a NULL file
...uous. Is there a work-around? Reproducible code and sessioninfo are below. The OS is Mac OS 10.6.8. Yours truly, Simon Kiss install.packages("HSAUR") library(HSAUR) library(TeachingDemos) data("Forbes2000", package="HSAUR") #This is a test of R output for the blind txtStart('test.txt', commands=TRUE, results=TRUE) txtComment('This command provides the mean profit in the data set') mean(Forbes2000$profits, na.rm=TRUE) txtComment('This command provides the standard deviation of the profits data set') sd(Forbes2000$profits, na.rm=TRUE) txtComment(...
2012 Dec 17
5
save to file
 Hi, What's the equivalent of "Save to File" from the R console File menu on an R routine? Just trying to capture the whole R console into a text file when my code fails. Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http://www.fws.gov/redbluff/rbdd_jsmp.aspx [[alternative HTML version deleted]]
2018 Apr 24
0
Copy text from Script syntax into .txt
Look at the spin and stitch functions in the knitr package if you want to process an existing script into an output that mixes the code run with the output. Look at the txtStart and related functions in the TeachingDemos package if you want the code and output saved in a file from a session where you are typing in commands. If in general you want text, code, and output mixed, learn the knitr and/or rmarkdown packages for how to write a file that can be processed into a re...
2010 Dec 16
3
How to save & play back an entire R session?
I know that at the end of an R session I'm given the option to save the current *state* of the session. But I would like to save the entire sequence of inputs that took place during the session, so that I can play them back later, and not only be left in the same state I was at the time of saving the session, but be able to see the entire history of the session (inputs and outputs). (This is
2018 Apr 24
6
Copy text from Script syntax into .txt
Hi everybody, How can I get text from RScript (e.g. syntax, reminder) into the result text. Sink() does not do that - I only read the results and therefore I have to 'guess' which syntax was used where - reminders I wrote are lost. Bw and thank you in advance, Roberto [[alternative HTML version deleted]]
2012 Jun 15
0
MCMCfactanal inquiries
...packages install.packages("MCMCpack") install.packages("foreign") install.packages("reshape") install.packages("car") ## calling libraries library(MCMCpack) library(foreign) ### this loads TeachingDemos pkg and allows me to save txts library(TeachingDemos) txtStart("imfproject7.txt",commands = TRUE, results = TRUE, append = FALSE) ## calling libraries library(MCMCpack) library(foreign) ## opening a data set on the desktop setwd("C:/Users/haillie/Desktop") imfdata<- read.csv("imfdata.csv") ##calling libraries library(reshape...
2008 Sep 23
2
R2HTML: output from for-loops
Hi, I am trying to prepare a report with R2HTML using HTMLStart(outdir="./html", filename="report", echo=T, HTMLframe=F) then, for instance, I want to get the output of a loop: for (i in 1:20) print(summary(rnorm(1000))) but only the first of summaries really ends up in the html file. What am I doing wrongly? Thanks, Werner
2008 Mar 26
0
Update of TeachingDemos package
...that graph your data, the predictions, and allow you to drag reference lines on the plot to show the predicted values, differences, and derivatives. tkprogress, a utility to create and update a progress bar to show how far through a loop or other iterative process you are. A set of functions (see txtStart and etxtStart) that will create a plain text transcript of your R session including both commands and output (think glorified sink + history). The 'etxt' versions add markup so that the text file can be processed by the enscript program to create a postscript file with some syntax coloring...
2008 Mar 26
0
Update of TeachingDemos package
...that graph your data, the predictions, and allow you to drag reference lines on the plot to show the predicted values, differences, and derivatives. tkprogress, a utility to create and update a progress bar to show how far through a loop or other iterative process you are. A set of functions (see txtStart and etxtStart) that will create a plain text transcript of your R session including both commands and output (think glorified sink + history). The 'etxt' versions add markup so that the text file can be processed by the enscript program to create a postscript file with some syntax coloring...
2011 Jan 13
2
send commands from script to console
Hi, I'm working with R in windows and I wonder if there is any command (of the kind CTRL+ ) to transfer the commands I've worked with (like: > model<-glm(prevalencia~edadysexo*mes*zona,binomial)) to a script automatically, without the results I received from R after execute them. Another question, what's the combination of CTRL+ for transfer the orders in the other way, fom the
2008 Oct 13
4
Add notes to sink output
Hello, How can I add notes (i.e. text) to a sink output? sink("test.txt") #This text will describe the test summary(x) sink() How can I add that text above to the sink output? Thanks, Michael [[alternative HTML version deleted]]
2008 May 19
2
Log or diary file
Hi! Is it possible to set a file to which both commands and output would get automatically saved? I've tried with sink(), but only get the output. I mean something like a combined history and sink, as you get with File/Save to File.. in the windows GUI. Tis is done with diary filename in Matlab, and you can state diary on and diary off to control what is being saved to the file. Thanks Agus
2011 Nov 01
3
Export to .txt
Hi, I would like to export all my workspace (even with the evaluation of commands) to the text file. I know about the sink() function but it doesnt work as I would like. My R-function looks like this: there are instructions for user displayed by cat() command and browser() commands for fulfilling them. While using the sink() command the instructions dont display :( Can anyone help me with a
2008 Sep 24
2
Add "title" in sink output and possibility of plot-like output for text
Hello, I have been using sink to create text file outputs. >sink("summ_model1and2.txt") > summary(model1) > summary(model2) > sink() Q1: Is there a way I could add a line of the text above the summary to act like a title? Also, I have been using the following to save plots from the lm function: > pdf("small.bin.ENN_MN_withQ.pdf") > par(mfrow = c(2, 2), oma
2010 May 20
2
Reading results of commands in Microsoft Word typed in the terminal window, A question from a Blind R user.
Hi all, I would like to read the results of the commands type in the terminal window in Microsoft Word. As a blind user my options are somewhat limited and are time consuming if I want to see the results of the commands that I have type earlier. for example if my first two commands were x<-c(1,2,3,4,5) mean(x) and I have typed ten more commands after the first two commands it is not easy
2009 Sep 14
2
Is there an equivalent of "echo"
Sorry I'm having one of those moments where I can't find the answer but I bet its obvious... I'm outputting my results to a file using sink() Is there a command simillar to php's echo command that would allow me to add some text to that file ie: dataFr$a = 1:10 dataFr$b = 2*1:10 sink ("filepath/filename.txt", split=T) #Show number of entries in vector a table
2012 Jan 22
4
how to save the R script itself into a rData file?
Hi all, As a part of work flow, I do a lot of experiments and save all my results into rData file... i.e. at the end of all my experiments, I do "save.image("experiment_name_with_series_number.rData")"... However, some times even with the rData files, I cannot remember the context where these data files were generated. Of course, I can make the R data file names and the R
2008 Jul 30
5
History pruning
Hi, I find that a typical workflow for me looks something like this: 1) import some data from files 2) mess around with the data for a while 3) mess around with plotting for a while 4) get a plot or analysis that looks good 5) go back through my history to make a list of the shortest command sequence to recreate the plot or analysis 6) send out that sequence to colleagues, along with the