Displaying 20 results from an estimated 2000 matches similar to: "using a personal template for new R scripts"
2011 Mar 18
1
[Patch suggestion] Adding 3rd arg to tempfile() to set extension
The other day I was working on an example which used tempfile() to create
file for use by the graphics device. And while I love tempfile()---as it is
portable and clever and the files get cleaned by R and all that---I noticed
one missing feature I would like to see: beside a starting name pattern, and
an optional directory, an 'file extension' argument would be nice to have.
As e.g. in
2018 Jul 17
2
Output mis-encoded on Windows w/ RGui 3.5.1 in strange case
Sorry, I should have been more clear -- if I write the contents of
that script to a file called 'encoding.R' and source that, then I see
the reported behavior.
Here's something standalone that you should hopefully be able to copy
+ paste into RGui to reproduce:
code <- '
x <- 1
print(list())
save(x, file = tempfile())
output <- encodeString("apple")
2018 Jul 18
1
Output mis-encoded on Windows w/ RGui 3.5.1 in strange case
Fixed in R-devel and R-patched,
Tomas
On 07/18/2018 12:03 PM, Tomas Kalibera wrote:
> Thanks, I can now reproduce and it is a bug that is easy to fix, I
> will do so shortly.
>
> Fyi it can be reproduced simply by running these two lines in Rgui:
>
> list()
> encodeString("apple")
>
> Best
> Tomas
>
> On 07/17/2018 05:16 PM, Kevin Ushey wrote:
2010 Dec 09
3
hi have a question about merging.
this is the problem:
load this R data frame over the internet and save it to your hard drive.
http://rss.acs.unt.edu/Rdoc/library/twang/data/raceproling.RData
please show how to save a dataset of males only (the variable male=1) to a new dataframe. Then do the same thing for females (male=0). Then show how to recombine the two datasets to belike the original one except that the female
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
2017 Jul 14
3
setwd in windows
Dear friends - windows R 3.3.3 - sorry to ask a simple question - but I
cannot make setwd work properly in scripts
In the example below I have made a directory in C (firstdir) and a
directory in that (secdir) and the intention is to change directory to
the second from the first - it works when I put the entire path but not
the tilde - what am I missing? I was around rwf 2.14 as per the help
2007 Jul 01
3
Session WTF ?
Hi.
How to use session in ruby on rails ?
I try to make it work for hours, but it still doesn''t work...
In my controller I have this:
def identification
@current_user = User.new(params[:user])
ok = false
redir = ''login_failed''
@remote_user = User.find(:all)
@remote_user.each do |r_user|
if (r_user.login == @current_user.login and
2020 Sep 03
2
Rgui never processes ~/.Renviron
ISSUE:
It looks like Rgui.exe never processes ~/.Renviron - only ./.Renviron.
REPRODUCIBLE EXAMPLE:
On Windows, create the following ~/.Renviron and ~/.Rprofile files:
C:\Users\alice> Rscript -e "cat('FOO=123\n', file='~/.Renviron')"
C:\Users\alice> Rscript -e "cat('print(Sys.getenv(\'FOO\'))',
file='~/.Rprofile')"
and launch
2023 Dec 17
1
call: file.exists("~/.Rtk2theme") error: file name conversion problem -- name too long?
Sorry for the double e-mail.
On Sun, 17 Dec 2023 17:25:38 +0300
Ivan Krylov <krylov.r00t at gmail.com> wrote:
> Can you at least temporarily disable OneDrive so that your Documents
> directory would be "C:\\Users\\Alipio\\Documentos"? This should keep R
> happy.
It should also work if you set the environment variable R_USER to
some ASCII-representable path:
(in
2015 Nov 06
2
corrupt PACKAGES.gz?
Is it just me, or did a corrupt PACKAGES.gz file get installed in the
bin/windows/contrib/3.2 directory of CRAN mirrors recently? gzfile()
complains about it and Cygwin's gzip cannot decompress it. I tried the
following
repos <- "https://cran.rstudio.com"
v <- "3.2"
pkgs.gz <- paste(sep="/", repos, "bin/windows/contrib", v,
2006 Oct 29
2
Rgui.exe fix for "console not found" buffer overflow problem
I'm using R on Windows XP Professional SP2.
I figured out the fix for my buffer overflow problem that did not allow me
to use Rgui.exe for about two weeks. I would keep getting "console not
found" and even when I uninstalled and re-installed got the same problem.
Here's how the problem started. In Rgui.exe, I attempted to get more
visible output in the buffer (I wanted
2005 Feb 28
2
phpconfig
Hello,
I recently downloaded phpconfig from
http://asterisk.espia-net.net/horde/chora/cvs.php/phpconfig?login=2
but on installing it, my interface does not look like the one at
http://rd.it.utah.edu/phpconfig/.
The main differences are:
1)On opening a file for editing, on the left menu mine has ony two
links i.e Header and the filename.conf as opposed to the deffrent
sections on the demo site.
2009 May 12
1
Help needed to compile R with shared library.
Hi,
I cannot compile R with shared library.
I am using Redhad Linux on Dell hardware.
Here''s what I am doing:
I set ?PICFLAGS in config.site file:
CPICFLAGS=-fPIC
FPICFLAGS=-fPIC
and issue:
./configure --enable-R-shlib --prefix=$HOME/newR
make
configure finishes with no complaints, the last
informative line being:
Options enabled: shared R library, shared BLAS, R
2008 Sep 07
2
R_USER - in which file should I include it?
Hello
I am a newbie. I had my R upgraded from 2.7.1 to 2.7.2 and in doing so I
decided to install all 2.7 versions under c:\program files\R\2.7 from now on
(2.7.1 is located under .\2.7.1)
Although I don't like the idea (I am running Vista), I have edited
etc\Renviron.site to contain:
R_USER=c:/Users/eduardo/Documents/R
R_LIBS_USER=c:/Users/eduardo/Documents/R/win-library/2.7
As far as
2009 Oct 30
2
R-help Digest, Vol 80, Issue 30
Dear friends,
I will be very happy if anyone tell me the way to change work directory
permanently?
I mean not use the function setwd() which can only change temporary, when
you close the console, it will the old directory.
Sys.setenv(R_USER = '') also doesn't work.
[[alternative HTML version deleted]]
2002 Jun 13
1
Problem about Rconsole: R for Windows Version 1.5.0 Patched (2002-06-05 and 2002-06-12)
R (Windows version) users/developers:
While I have checked R-help/-devel mailing lists and R-bug-tracking
system, this problem has not been reported so far. I would like to know
whether this problem is specific to my machine.
Lately I downloaded the version 1.5.0 patched [for windows] from
http://www.stats.ox.ac.uk/pub/bdr/RWin/Rpre/ [patched: 2002-06-05] and
2020 Jan 29
2
Model object, when generated in a function, saves entire environment when saved
Reviving an old thread. I haven't noticed this be a problem for a while
when saving RDS's which is great. However, I noticed the problem again when
saving `qs` files (https://github.com/traversc/qs) which is an RDS
replacement with a fast serialization / compression system.
I'd like to get an idea of what change was made within R to address this
issue for `saveRDS`. My thought is that
2018 Jul 18
0
Output mis-encoded on Windows w/ RGui 3.5.1 in strange case
Thanks, I can now reproduce and it is a bug that is easy to fix, I will
do so shortly.
Fyi it can be reproduced simply by running these two lines in Rgui:
list()
encodeString("apple")
Best
Tomas
On 07/17/2018 05:16 PM, Kevin Ushey wrote:
> Sorry, I should have been more clear -- if I write the contents of
> that script to a file called 'encoding.R' and source that,
2010 Aug 22
2
CRAN (and crantastic) updates this week
CRAN (and crantastic) updates this week
New packages
------------
* DCGL (1.0)
Bao-Hong Liu
http://crantastic.org/packages/DCGL
Functions for basic differential coexpression analyses: gene
filtering, link filtering, DCG (Differentially-Coexpressed Gene)
identification and DCL (Differentially-Coexpressed Links)
identification.Two algorithms,named DCP and DCe, are provided for
2017 May 09
2
source(), parse(), and foreign UTF-8 characters
Hi
I'm having trouble sourcing or parsing a UTF-8 file that contains
characters that are not representable in the current locale ("foreign
characters") on Windows. The source() function stops with an error, the
parse() function reencodes all foreign characters using the <U+xxxx>
notation. I have added a reproducible example below the message.
This seems well within the