Displaying 20 results from an estimated 11000 matches similar to: "Ignoring .Rprofile when installing a package"
2009 Feb 04
2
Capturing all warnings (with messages)
Dear all,
For an open-source project that I'm working on (1), which uses R for
all its heavy lifting but includes a wrapper shell script, I was
hoping to find a way to capture all warnings (and, in fact, errors
too), and handle them in my own way. I realise I can do this for a
single expression using something like:
> f <- function(w) print(w$message)
>
2011 Sep 23
2
Issue with seek() on gzipped connections in R-devel
Dear all,
In R-devel (2011-09-23 r57050), I'm running into a serious problem
with seek()ing on connections opened with gzfile(). A warning is
generated and the file position does not seek to the requested
location. It doesn't seem to occur all the time - I tried to create a
small example file to illustrate it, but the problem didn't occur.
However, it can be seen with a file I use for
2014 Mar 24
1
Timezone warnings on package install in R-alpha
Dear all,
As of the current R alpha release, I'm seeing timezone-related warnings on
installing any package (including the recommended ones), which I haven't
seen before. For example,
[~/Documents/Source/R-alpha]$ bin/R CMD INSTALL ~/git/tractor/lib/reportr
* installing to library '/Users/jon/Documents/Source/R-alpha/library'
* installing *source* package 'reportr' ...
2009 Jul 21
1
Customization options with .Renviron, R_LIBS, .Rprofile etc
Hi,
I am interested in customizing the installation of R. I have
gone through the ?R Installation and Administration? manual. But some
of the stuff is not clear to me and I would like to get clarifications
on the following points (for a Windows installation with
R_HOME=C:\\R\\R-2.9.1 ) :
1. I understand that I need to create a
file, .Renviron with the following path : R_HOME\\etc\\.Renviron where
2012 Feb 23
1
R devel [and R 2.14.1 patched]: R CMD build now sources ~/.Rprofile
I'd like to follow up on this one. It may be that I have
misunderstood something, but on both R devel (2012-02-22 r58452) and R
2.14.1 patched (2012-02-18 r58394) I can't seem to avoid loading
~/.Rprofile when I run 'R CMD <cmd>', e.g. R CMD build. For me, the
loading of ~/.Rprofile by 'R CMD' started a few weeks ago, and I
haven't seen it before. More details
2013 Jul 04
1
Cross-platform linking of a simple front-end
Dear all,
I have a simple front-end program which uses the APIs described in section
8 of "Writing R Extensions" to deviate from the standard R behaviour in
fairly minor ways. However, I'm having some difficulty getting it to link
reliably across different platforms.
R CMD LINK seemed like it would help, but I've had difficulty finding many
real-world examples online. I've
2015 Dec 05
2
R_PROFILE_USER
In my shell environment, I have set a path to R_PROFILE_USER. The
file, Rprofile.R, is a collection of small hacks.
I want to build rstudio-server from source. Best is to $ unset
R_PROFILE_USER before. Unfortunately, this has no effect on my system.
-----------------------------------------------
poisonivy at poppy ?? ~ % R
*** Successfully loaded .Rprofile ***
Welcome back poisonivy
working
2015 Dec 05
1
R_PROFILE_USER
On Sat, Dec 5, 2015, 9:39 PM peter dalgaard <pdalgd at gmail.com> wrote:
> On 05 Dec 2015, at 18:07 , arnaud gaboury <arnaud.gaboury at gmail.com>
wrote:
>
> In my shell environment, I have set a path to R_PROFILE_USER. The
> file, Rprofile.R, is a collection of small hacks.
>
> I want to build rstudio-server from source. Best is to $ unset
> R_PROFILE_USER
2010 Mar 05
2
[PATCH] R ignores PATH_MAX and fails in long directories (PR#14228)
Full_Name: Murray Stokely
Version: 2.10.1
OS: Linux
Submission from: (NULL) (216.239.45.4)
The Defn.h header includes limits.h for PATH_MAX and then checks if it hasn't
been defined and if not sets something manually. Some of the R code uses
PATH_MAX but a lot of other functions in unix/sys-unix.c and main/startup.c just
hardcodes a limit of 256 characters.
In my environment this is not
2009 Aug 11
1
readBin() arg check has unnecessary overhead (patch included)
Dear all,
The version of readBin() in R-devel includes a use of match(), through
`%in%`, which can affect its performance significantly. By using
primitives instead of the rather expensive call to match(), I reduce
the time spent inside readBin() by more than 30% in some of my code
(part of the tractor.base package). A simple patch that does this is
given below. This passes "make
2007 Dec 19
1
Standard input and R
Dear all,
I am trying to wrap a *nix shell script around R for a particular
purpose, for which I need to get R to execute predetermined commands
but retain interactivity and allow user input during their execution.
A straight redirection of standard input is therefore not appropriate,
and I don't think "littler" is the solution because I don't want to
write an
2006 Sep 13
1
Error: package/namespace load failed for 'fortunes'
Hello!
I have the following R code in my .Rprofile file - just for fun.
library(fortunes)
fortune()
detach("package:fortunes")
This works nicely in R 2.3.1, but it throws the following error under
latest R-devel:
...
...
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to
2009 Feb 28
1
Execute script and go interactive
Hi,
is it possible to execute a script with R and go into interactive mode
with the same session?
e.g.
R < myscript.R
>objects()
Creating a .Rprofile is not an option for me.
Thank you
Michael
2011 Jan 07
1
rprofile.site
Hi all,
i just installed R 2.12.1 and Tinn-R 2.3.7.1. My OS is Windows 7 32bit.
Here is my question:
Do I have to execute the rprofile.site manually every time I start a
R/Tinn-R session? Because it seems that way.
Here is the error code I receive after sending "selection(echo=TRUE):
source(.trPaths[5], echo=TRUE, max.deparse.length=150)
It doesn't do that after I configure
2003 Jul 28
3
Recommended way to change defaultPackages under Windows
What is the recommended way to change the default set of packages that
are loaded at startup by R for Windows? I am writing vignettes for
the Devore6 package which my introductory engineering statistics
students will use and I would like to describe how the R environment
can be changed so that this package is loaded by default.
I understand from the R for Windows FAQ that one way would be to
2011 Apr 21
1
Package check issue: Rprofile.site is not used
Dear R-users,
I am having some issues with a package I am working on (using R 2.12.1 in a
Linux environment) and would like to have your opinions/advises. My package
- let's call it mypackage for the purpose of this email - passes all checks
of R CMD check, except for the following failure message:
Error : .onLoad failed in loadNamespace() for 'mypackage', details:
call:
2008 May 02
2
.Rprofile is being executed twice
Hi,
After updating to R 2.7, my .Rprofile executes twice on startup. I
confirmed this by putting in the following line:
print("starting .Rprofile...")
When I start R, I see:
[1] "starting .Rprofile..."
[1] "starting .Rprofile..."
This seems like the obverse of the following FAQ:
2013 Oct 03
1
When to use RProfile.site or .Rprofile
I would appreciate some advice on what the preferred contents of RProfile.site vs. .Rprofile should be. A .First() function can reside in either one, but is it preferred to place it in .Rprofile? I currently use .First() in .Rprofile files placed in separate directories used for different RStudio projects.
Thank you
[[alternative HTML version deleted]]
2007 Mar 26
1
Problem in loading all packages all at once
Hi All
Please see the Rprofile file which i have modified as follows and after
that when I start R then I see that R says to me "TRUE" for all the
packages implying that all loaded at once.
But when i try to use commands as simple as help("lm"), it doesnt work nor
any of the menu "Packages" is not working.
Although the regression using lm ( Y ~ X ) is working
2008 Sep 24
2
R --interactive and readline() creates infinite loop
Dear all,
I have asked before, in R-help [1], about a way to create an
interactive session in which commands are taken from a file or
standard input - like R CMD BATCH but additionally allowing user input
- but there was no response to that question, and the workarounds that
I have found (using "expect", creating a temporary .Rprofile) are ugly
and problematic.
With the