First time here? Check out the FAQ!
x

I can't submit multiple lines of R code.

0 votes
asked by (120 points) about Tinn-R
edited by

I'm using Tinn-R version 2.3. It will not run when I select multiple lines of R code. The single lines of R work fine from Tinn-R. I tried recent versions of Tinn-R (2.3.3.0 and 2.3.4.1), but it always gives an error message when I select more than one line of R code and I click on one of the two multiple-lines Tinn-R send icons (R send: selection and R send: selection (echo=TRUE)):

The error message, which appears is:

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

What can I do?

1 Answer

0 votes
answered by (132k points)
edited by

In order to fix the problem, upgrade the utility to the latest version. After that, open the (C:) > Program Files > R > R-3.0.3.6 > etc > Rprofile.site directory and create a .trPaths object using the following syntax:

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

Also, make sure you're running the program using Administrator rights. For further information, I recommend you open the first link from Google search engine.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...