全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
2132 2
2012-03-23
Hi, I just got a new computer with windows 7 on it and I had a problem using Tinn R since two days ago.  The problem occurred when I selected a chunk of code and tried to run it all at once using the "R send:selection (echo = TRUE)" button, I got this error:

Error in source(.trPaths[5], echo = TRUE, max.deparse.length = 150) :
  object ".trPaths" not found


Luckily, I found one useful suggestion and sucessfully fix this problem. See as below:

I have got a solution worked for me. Make the follow steps in Administration mode (in Win7 right click on ikon -> Run as administrator), then in Tinn-R: R -> Configurate -> Permanaent.
Than delete the # mark from the UK and Brasil repository. 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


Run with hand all of the line (not just the the passage quoted above) and it should be fine.
  
For me it worked. I read a lot of forum about this problem non of them worked for me. Tried re-installation, older version, etc. So I thought maybe the other repositories will be OK, and they were.

Good luck with that.

Windows 7 32 bit
R 2.14.1
Tinn-R 2.3.7.1




二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2012-3-23 12:23:34
为什么不用Rstudio呢
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2012-3-23 13:40:00
You need add following context in file 'Rprofile.site'

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

'Rprofile.site' is located at 'C:\Program Files\R\R-2.14.0\etc'.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群