[R] R problem

Endy pertsou at yahoo.gr
Thu Jun 18 19:55:27 CEST 2015


Hi, R users.
I am using windows 7 ultimate, as an OS, and the R version
3.2.0. This combination creates some problems when I run R.  The problem focuses on the command ‘source’.
More precisely, suppose that we have a main function, let call it mainfn, which
calls within it another function, call it subfn, with the command     source(“C:\\Program
Files\\. . .\\subfn.txt”).
 The files with the R
code of the two functions, mainfn and subfn, are .txt files. First I load the
mainfn  function using       File->  Source R code…      and I get
>source(“C:\\Program Files\\ . . .\\mainfn.txt”)
Then I run the mainfn 
>mainfn ()
and I get 
Error in file(filename, "r", encoding = encoding)
: 
  cannot open the
connection
Any suggestion what goes wrong?
> 



More information about the R-help mailing list