similar to: Error on Startup: Error: 7:6: unexpected symbol 7: set the

Displaying 20 results from an estimated 10000 matches similar to: "Error on Startup: Error: 7:6: unexpected symbol 7: set the"

2012 Jul 30
1
locked binding of setwd() in R 2.15.x causes .Rprofile to fail
[Env: Win XP, R 2.14.2, R 2.15.0] I have a replacement function for setwd() in my .Rprofile which displays the current R path in the R window title. It no longer works in R 2.15.x, giving the error below. Worse, the error prevents the rest of my .Rprofile script from completing. Is there some way to rescue this, i.e., preserve this behavior in R 2.15? If not, how can I modify my script so it
2005 Jan 31
2
Startup Files (RProfile) and R-Aqua
Hello, I'm having some difficulty understanding the documentation relative to the startup files with R-Aqua 2.0.1 for Mac OS X. Specifically, I'm wondering: where does R search for the startup files (my home directory at Users:<me>:?); how should they be named (.RProfile will be treated by Mac OS X as a system file and be hidden, so I'm wondering if it should just be
2008 Jul 14
2
.First and .Rprofile won't run on startup
I'm trying to source a file automatically every time I start R. I tried adding the following .First function in a file Rprofile.site in my $R_HOME/etc/ directory (verified $R_HOME by Sys.getenv()) as well as in a file .Rprofile in my $HOME directory and .Rprofile in the working directory: .First <- function(){ source(file.path(Sys.getenv("HOME"), "R",
2004 Apr 16
2
Windows startup menu display problem in 1.9.0 (PR#6783)
Full_Name: Brian J. Smith Version: 1.9.0 OS: WinXp Submission from: (NULL) (129.255.217.48) WinXP; R 1.9.0 running under Rgui.exe. winMenuAdd calls via my .Rprofile file do not seem to work and, instead, result in the following error message after the R GUI starts: Error in eval(expr, envir, enclos) : couldn't find function "winMenuAdd" Any subsequent calls to winMenuAdd from
2005 Jan 05
1
Using the Rprofile file to automatically plot data on Startup of R version 2.0.1.
Dear R Help Members, I have some R functions that plot semiconductor data. I would like to automate these plots for individuals in our group such that they don't have to know R. I have read the R help manuals and postings but have not found this problem. I am using R version 2.0.1 under a Windows 2000 operating system. The following is a simplified version of what I am tring to do: If
1999 Sep 24
2
R's startup : .Rprofile & .Renviron -- info and RFC
[RFC = Request for Comments] { Yes, the documentation for .Renviron is really not there (but the FAQ...); the rest is in ?Startup } In R's Startup (on Unix only??) {unless --no-environ is specified} ~/.Renviron (if there) is read as an 'sh' script before R is called, then R looks ((for the site-wide Rprofile and then)) for .Rprofile in the current directory and then for
2002 Oct 17
1
Startup on Windows 2000
I am having difficulty coming to grips with Appendix B.2 of the otherwise very useful "An Introduction to R" and the related help file for Startup. I am running RGui 1.6.0 on a Windows 2000 machine from the default installation. How the concepts discussed in B.2 and the Startup help file relate to what I see on my machine is something of a mystery. I quote from the Startup file:
2013 Jul 15
2
suppress startup messages from default packages
Hi all, several packages print messages during loading. How do I avoid to see them when the packages are in the defaultPackages? Here is an example. With this in ~/.Rprofile ,----[ ~/.Rprofile ] | old <- getOption("defaultPackages") | options(defaultPackages = c(old, "filehash")) | rm(old) `---- I get as last line when starting R: ,---- | filehash: Simple key-value
2013 Apr 04
2
custom startup/welcome message
hi everybody I wonder if there is a simple way, but not simple would be ok too, to customize info/welcome page at session start time? what I'd like to do is to put together simple short howto / dos & don'ts page for users, I'm thinking it would be great if it was possible many thanks [[alternative HTML version deleted]]
2003 Apr 22
2
Weird Windows startup menu display problem in 1.7.0 (PR#2817)
Folks: Winnt; R1.7.0 (freshly installed) running under Rgui.exe.,MDI=yes. The following is repeatable: On startup, in my Rprofile.site file, I use winMenuAdd() etc. to install some user menus. However, they do not appear when R GUI window opens. If I minimize and restore the window, the added menus now are present. The exact same procedure under 1.6.2 with exactly the same Rprofile.site and
2010 Feb 11
1
(linux) display messages in R startup screen
Dear guRus, I'm maintaining central R installation (Linux) for our institute. The startup screen of R traditionally echoes some messages (starting with "R version ...Copyright (C).. The R Foundation for Statistical Computing...") and I'd like to display for example right after these messages some other messages about our specific setup, how to contact me etc ... What
2010 Feb 10
1
R Startup configuration file
Currently when R starts up it can be configured by a file of environment variable specifications and a file of R code. This makes programmatic modification of startup configuration tricky. Case in point: I start R, do install.packages("foo"), and up pops the 'choose a CRAN mirror' dialog. I'd like to put a 'Save my choice' button on that dialog. Currently it would
2006 May 04
3
Rgui, Startup, HOME, R_USER, ...
Hi, Main objective: Let Rgui find my ~/.Rprofile and ~/.Renviron files, where ~ is equal to getwd("~"). I have few comments/questions: (A) On my WinXP Pro installation, the system environment variable 'HOME' is not availble to R, e.g. Sys.getenv("HOME") is empty. I believe this is default case (correct me if I'm wrong). However, if I set the "Start
2004 Apr 14
1
Re: [R] Execute function at startup
I think you can already do this via .First(). If you start your .First with something like this [give or take some parentheses] if( !is.null( runfirst <- Sys.getenv( 'RUNFIRST'))) try( eval( parse( text=runfirst)))) then whatever you pass in as RUNFIRST=... should get executed on startup. Could even be a call to source(...) if you want to source a particular file. I have a similar
2012 Nov 16
2
source file on startup question - why does an old version of a function show up? ggplot or R?
All, 1. I will try and make this clear and concise. Please let me know any information that would be helpful in figuring out this problem (I don't know the relevant information to post). I am on linux- see below for session information. 2. Problem: working directory: home an old version of a function is sourced into the R session and doesn't work working directory: Desktop the
2003 Mar 05
1
order of package loading and printing messages to console on startup
Recently in R-devel, I've noticed that when I start up R, code in .Rprofile (in the working directory) gets sourced but any messages printed out by that code (e.g. by `cat') are printed *before* the introductory statement about R. For example, if I put the line library(KernSmooth) in my .Rprofile file, I get artemis:> R KernSmooth 2.22 installed Copyright M. P. Wand 1997 R :
2012 Apr 04
3
Rgui maintains open file handles after Sweave error
Hello Folks, When I run the document below through sweave, rgui.exe/rsession.exe leaves a file handle open to the sweave-001.pdf graphic (as verified by process explorer). Pdflatex.exe then crashes (with a Permission Denied error) because the graphic file is locked. This only seems to happen when there is an error in the sweave document. When there are no errors, no file handles are left open.
2006 Nov 10
2
Command Line Prompt Symbol
Hi I run R in Windows. Is there a simple way of changing the prompt symbol ">" to, say, "R>" ? (Not just for a temporary session, but every time R command window is opened.) The documentation of doing this is rather "sparse". Much appreciated for your assistance. Jacob Jacob L van Wyk Department of Statistics University of Johannesburg, APK P O Box 524
2001 Mar 12
1
loading shared libraries at startup
Dear people, I compiled a bit of C code into a shared library cftpR.so, and load it into R at runtime using > dyn.load("cftpR.so") This works fine, however when I put .First <- function() { dyn.load("/home/faheem/research/cftp/cftpR.so") } (using absolute path names; also tried with just dyn.load("cftpR.so")), into my .Rprofile to load the library at
2004 Apr 16
1
Pb on startup with R1.9.0
I'm using Rprofile file on R1.9.0 startup and inside I'm loading a personal Library which uses winMenuAdd() and I've got this error : Error in eval(expr, envir, enclos) : couldn't find function "winMenuAdd" I hadn't this problem with others R versions. What Can I do now to avoid that? I'm using R1.9.0 under Win98. [[alternative HTML version deleted]]