[R] Error Running TinnR with R

teck-corp d.tuerk at maastrichtuniversity.nl
Fri Mar 12 11:17:27 CET 2010


Hi,

I use Windows Vista, downloaded the new version (2.3.5.0) of Tinn-R and
followed the advise to change a part in the Rprofile.site and now have

#===============================================================
# R: general options
#===============================================================
library(utils)
options(chmhelp=TRUE)
options(tab.width=2)
options(width=140) # two monitors
#options(width=80) # notebook
options(digits=2)
#options(repos='http://143.107.212.50') # LCE
options(repos='http://brieger.esalq.usp.br/CRAN/')
#options(SweaveSyntax="SweaveSyntaxNoweb", SweaveOptions="keep.source=T")
#setWindowTitle(paste('-', getwd()))

#===============================================================
# Packages: my preferred
#===============================================================
preferred.1 = c('cluster', 'debug', 'MASS', 'rgl', 'scatterplot3d',
'ScottKnott')
installed = preferred.1 %in% installed.packages()[, 'Package']
if (length(preferred.1[!installed]) >= 1)
install.packages(preferred.1[!installed], dep = T)

# loading preferred
library(cluster)
library(debug)
library(MASS)
library(rgl)
library(scatterplot3d)
library(ScottKnott)

# loading others preferred
library(XML)
library(dae)
library(agricolae)
library(AlgDesign)
library(Design)
library(bpca)
library(BiplotGUI)
library(Hmisc)
#library(Ryacas)

#===============================================================
# Debug package: my options to notebook (monitor 14.4" wide)
#===============================================================
options(debug.catfile = 'stdout')
options(debug.font = 'Arial 11')
options(debug.height = 15)
options(debug.width = 155)
options(debug.screen.pos = '-1+1')


#===============================================================
# Functions: my functions, all will be loaded into package base
#===============================================================
sm = function(x) summary(x)
oldPath = getwd()

# others
setwd('F:/dados/r/funcoes/')
source('customizing.r', local=T)
source('cv.r', local=T)
source('d2mah.r', local=T)
source('dstat.r', local=T)
source('fitreg.r', local=T)
source('fitregl.r', local=T)
source('fitrlcor.r', local=T)
source('nw.r', local=T)
source('plotlm3d.r', local=T)
source('plotreg.r', local=T)
source('plotrl.r', local=T)
source('sm.hcluster.r', local=T)
source('tb.table_v2.4.r', local=T)
source('tcmm.r', local=T)
setwd(oldPath)


##===============================================================
## Tinn-R: necessary packages and functions
## Tinn-R: >= 2.2.0.2 with TinnR package >= 1.0.3
##===============================================================
options(repos='http://software.rc.fas.harvard.edu/mirrors/R/') # USA
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:/Tinn-R/bin/Tinn-R.exe')
#trStartIDE()

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

## Start DDE
trDDEInstall()

 .trPath=list(
              Tmp      ='C:/Users/dennis/AppData/Roaming/Tinn-R/tmp/',
              Search  
='C:/Users/dennis/AppData/Roaming/Tinn-R/tmp/search.txt',
              Objects 
='C:/Users/dennis/AppData/Roaming/Tinn-R/tmp/objects.txt',
              File     ='C:/Users/dennis/AppData/Roaming/Tinn-R/tmp/file.r',
             
Selection='C:/Users/dennis/AppData/Roaming/Tinn-R/tmp/selection.r',
              Block   
='C:/Users/dennis/AppData/Roaming/Tinn-R/tmp/block.r',
              Lines    ='C:/Users/dennis/AppData/Roaming/Tinn-R/tmp/lines.r'
            )

Unfortunately Tinn-R does still not communicate with Rterm and RGui giving
me the error message
source(.trPaths[5])

Does anybody have an idea what I am doing wrong?
Thanks a lot for your answers!!!

-- 
View this message in context: http://n4.nabble.com/Error-Running-TinnR-with-R-tp876004p1590369.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list