Displaying 20 results from an estimated 10000 matches similar to: "Export to .txt"
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
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]]
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
2007 Jan 08
4
Export dataframe to txt
Hi all,
Is there a function to export a dataframe to a text file?
I want to store a large set of data which I have saved in a dataframe
in my workspace and copy and past doesn't cut it.
Thank you,
Benjamin
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]]
2009 Dec 09
3
.Rhistory in R.app
Dear R users,
I am having a minor but annoying issue with R.app. It doesn't retain
the history information from the previous sessions. By "history," I
mean a record of commands/functions entered into R rather than the
list of objects--that is properly recorded in the .Rdata file as well
as in a workspace file I save separately.
System details:
R version 2.9.0
R.app GUI 1.28
Mac OS
2011 Sep 14
2
Difficulty with saving .Rhistory
Current systems
??? OS: RedHat SE Linux 5.7, fully patched
??? R: R-2.13.1
I am a new R user.
The R installation needs to be very tight because I plan to use it after I am employed on Internet facing systems to analyse firewall and filesystem log data.? Everything to my knowledge regarding R installed correctly.? I saw no warnings until saving THE WORKSPACE.
NON-ROOT OUTPUT CURRENTLY YIELDS
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
2005 Mar 04
1
Rconsole wishlist
Hi all,
Wouldn't it be nice (??!!) if R automatically issued a warning message when
the R console buffer was about to fill so that you could save all your
output into a text file? (I know about sink(), but I think it would be good
to have an easier mechanism to save a complete record of messages and
function output). And on a similar vein, wouldn't it also be nice if R
automatically
2010 Nov 14
3
How to permanently remove [Previously saved workspace restored]
Win 7 64 bit
R version 2.11.1 (2010-05-31)
How to permanently remove;
[Previously saved workspace restored]
> rm (list = ls( ))
On next start it still displays;
.....
[Previously saved workspace restored]
There is a file keeping the previous data on Linux
.Rdata
How about on Windows?
TIA
B.R.
Stephen L
2002 Sep 19
3
savehistory directories and quitting R (PR#2038)
#
# r-bugs@r-project.org
#
######################################################
Because I work in different directories, but always want to save my
.Rhistory in the same place, I have changed the system function savehistory
to this:
function (file = "D:/R50/.Rhistory")
invisible(.Internal(savehistory(file)))
When I use q() to quit R, and it asks me whether I want to
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
2020 Oct 26
4
securing R code....
dear members,
I am a stock trader. I am using R for my research.
I want to service my laptop, wherein resides all my R code, which, for obvious reasons, has to be secured. I am using Windows 7 Ultimate.
I cannot encrypt the R data by Bitdefender, as it encrypts the entire drive. I anyway need to give the key when the system, if at all, gets locked when servicing.
My
1999 Feb 23
2
rw0632 makes stray .Rhistory orphans
If you start Rterm/Rgui from the cmd (NT4.4) command line, the .Rhistory and
.RData files are created/used in the current directory.
I think, R should honor HOME or even the USERPROFILE variable.
Regards
Karl
PS: is this the correct list for such reports or would it be better to use
r-devel?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list --
1999 Feb 23
2
rw0632 makes stray .Rhistory orphans
If you start Rterm/Rgui from the cmd (NT4.4) command line, the .Rhistory and
.RData files are created/used in the current directory.
I think, R should honor HOME or even the USERPROFILE variable.
Regards
Karl
PS: is this the correct list for such reports or would it be better to use
r-devel?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list --
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
2006 Mar 16
1
autoloading .RData files / .Rhistory file
NOTE: WinXP, R2.2.0
All,
a while back I posted a question about using relative filereferencing.
The responses have allowed me to successfully set up the following
directory structure:
...\data\raw
...\data\derived
...\prog
...\lst
...\log
In the \prog directory I have put an RGui.exe shortcut and "pointed it"
at \prog as the "Start In" location. In the same
2013 Mar 31
1
Storage of automatically loaded workspace and command files
When I close R and answer yes to save workspace, R automatically loads it and apparently also the command history at start up. I would like to know where R stores this information. I know that I can save .RData and .Rhistory files, but I would like to know how(where) R stores this information automatically. I have not found any .RData or .Rhistory files associated with start up.
I am running
2013 Mar 31
1
Where does R store workspace and commands that load on startup
When I close R and answer yes to save workspace, R automatically loads it and apparently also the command history at start up. I would like to know where R stores this information. I know that I can save .RData and .Rhistory files, but I would like to know how(where) R stores this information automatically. I have not found any .RData or .Rhistory files associated with start up.
I am running
2017 Oct 25
1
How to save and restore a workspace
Saving your workspace means that the variables you currently have defined in your session [ everything that shows up when you type ls() ] are saved to a file, by default named ?.RData?. To restore the workspace, you use the ?Load Workspace? command and navigate to the (same) .RData file. Its default location for Windows, as far as I know, is your ?Documents? folder. So look there.
I see that you