Hello-
I am admittedly a relatively new user and am trying to link R and textpad. I have the syntax highlighting for R, but I have been unsuccessful at creating a tool to run my R file from textpad so that I do not have to cut and paste code. I would appreciate any help.
Thanks-
linking R and textpad?
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
I may be misunderstanding what you want. To open a non .txt file type in TextPad you need to set up a document class:
1st "Apply these settings to all document classes." is unchecked throughout. If you do not want the settings to be applied throughout.
2nd Closed all open instances of TP
3. Open TP close the New Document
4. Configure > New Document Class
Name NewClass
Member: *.ntxt (include the asterisk)
OK
5. Configure Preferences
1st "Apply these settings to all document classes." is unchecked throughout. If you do not want the settings to be applied throughout.
2nd Closed all open instances of TP
3. Open TP close the New Document
4. Configure > New Document Class
Name NewClass
Member: *.ntxt (include the asterisk)
OK
5. Configure Preferences
Best Wishes!
Mike Olds
Mike Olds
clarification
Thanks for the input, and I apologize for being unclear. Hopefully I can clarify.
So I successfully set up a new document class for files associated with R, and also successfully enabled syntax highlighting.
What I was hoping to do next was to create a new tool (analogous to "Run Java") by using either the "add dos command" or "add program" options (located within configure -> preferences) to run an *.R file directly from textpad. By doing this, I am hoping that I can then just use the "Tools" pull down menu to execute R code instead of having to cut and paste into the R gui.
I have been able to set up text pad to run other modeling programs that I use, but have been unsuccessful at configuring it to run R files.
Thanks again!
So I successfully set up a new document class for files associated with R, and also successfully enabled syntax highlighting.
What I was hoping to do next was to create a new tool (analogous to "Run Java") by using either the "add dos command" or "add program" options (located within configure -> preferences) to run an *.R file directly from textpad. By doing this, I am hoping that I can then just use the "Tools" pull down menu to execute R code instead of having to cut and paste into the R gui.
I have been able to set up text pad to run other modeling programs that I use, but have been unsuccessful at configuring it to run R files.
Thanks again!
- talleyrand
- Posts: 624
- Joined: Mon Jul 21, 2003 6:56 pm
- Location: Kansas City, MO, USA
- Contact:
R, the statistical language! I had found a most wonderful job opportunity that needed all the languages I knew plus R so I had to see what I was missing.
At any rate, I would go with Add Program and navigate to the compiler for R and that would be your first tool. The second tool would invoke the interpreter. You might need to adjust the Parameters of the tool if it does a similar thing to java, i.e. .java source file, .class byte file.
Java is a special beast in TextPad, one click will attempt to set up all 3 tools. Everything else you'll need to set up each tool by hand.
At any rate, I would go with Add Program and navigate to the compiler for R and that would be your first tool. The second tool would invoke the interpreter. You might need to adjust the Parameters of the tool if it does a similar thing to java, i.e. .java source file, .class byte file.
Java is a special beast in TextPad, one click will attempt to set up all 3 tools. Everything else you'll need to set up each tool by hand.
I choose to fight with a sack of angry cats.
I thought that I might be missing what you needed.
I've been hearing a lot about R on a very interesting list you might want to check out:
http://www.dailyspeculations.com
I've been hearing a lot about R on a very interesting list you might want to check out:
http://www.dailyspeculations.com
Best Wishes!
Mike Olds
Mike Olds