[R] Tinn-R and DDE

Al.x alexander.host at gmail.com
Thu Oct 7 16:38:41 CEST 2010


Hi folks,

I'm trying to get these "call-tip" things to work in Tinn-R. I expect them
to be somewhat like Microsoft's Intellisense? Anyways, I copy-pasted the
recommended Rprofile.site and adjusted it to fit the location of my
Tinn-R.exe... It looks like this:

##===============================================================
## Tinn-R: necessary packages and functions
## Tinn-R: >= 2.2.0.2 with TinnR package >= 1.0.3
##===============================================================
## Set the URL of the preferred repository, below some examples:
options(repos='http://software.rc.fas.harvard.edu/mirrors/R/') # USA
#options(repos='http://cran.ma.imperial.ac.uk/') # UK
#options(repos='http://brieger.esalq.usp.br/CRAN/') # Brazil

library(utils)

## Check necessary packages
necessary <- c('TinnR', 'svSocket')
installed <- necessary %in% installed.packages()[, 'Package']
if (length(necessary[!installed]) >=1)
install.packages(necessary[!installed])

## Load packages
library(TinnR)
library(svSocket)

## Uncoment the two lines below if you want Tinn-R starts always R starts
## (Observation: check the path of Tinn-R.exe)
options(IDE='C:/Programs/Tinn-R/bin/Tinn-R.exe')
trStartIDE()

## Set options
options(use.DDE=T)

## Start DDE
trDDEInstall()

.trPaths <- paste(paste(Sys.getenv('APPDATA'), '\\Tinn-R\\tmp\\', sep=''),
c('', 'search.txt', 'objects.txt', 'file.r', 'selection.r', 'block.r',
'lines.r'), sep='')


-------------------
When opening R, Tinn-R opens as expected, so at least that's working
correctly. The help file in Tinn-R now recommends that I try the "call-tip"
by making a little function in R and then testing it in Tinn-R to see if the
"call-tip" pops up. 

What am I doing wrong? Do I need to assign a hot-key (like ctrl+space in
eclipse) or something?

Cheers,
Alex




-- 
View this message in context: http://r.789695.n4.nabble.com/Tinn-R-and-DDE-tp2966894p2966894.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list