Displaying 20 results from an estimated 10000 matches similar to: "How do I modify sytem shell environment from within R?"
2012 Nov 02
1
mergeing a large number of large .csvs
Dear R help;
I'm currently trying to combine a large number (about 30 x 30) of large
.csvs together (each at least 10000 records). They are organized by plots,
hence 30 X 30, with each group of csvs in a folder which corresponds to the
plot. The unmerged csvs all have the same number of columns (5). The fifth
column has a different name for each csv. The number of rows is different.
The
2012 May 22
3
Is there a way to save EVERYTHING in R?
Is there a way to save EVERYTHING in R?
Hi all,
Could you please shed some lights on me about this?
I am trying to see if there is a way to save EVERYTHING in R to a file,
something like "save.image"...
But "save.image" doesn't save environment variables such as those
properties that are obtained using "Sys.getenv()" function...
So is there a way to save
2012 May 27
1
SOS! R Console crashed after loading RODBC... Update: Re: How to set up RODBC? Diff between R Console and RStudio?
On Sun, May 27, 2012 at 11:32 AM, Michael <comtech.usa@gmail.com> wrote:
> Help! The R Console very quietly closed and exited without giving any
> errors/warnings...after I loaded the RODBC library...
>
> Loading required package: RODBC
>
>
>
>
> On Sat, May 26, 2012 at 10:27 PM, Michael <comtech.usa@gmail.com> wrote:
>
>> Hi all,
>>
>>
2011 Dec 06
1
RStudio: copied line is always not the same as the line that I highlighted
Hi all,
I am using RStudio. I wanted to copy and past an expression/line.
I highlighted it, and then copied and pasted:
The result was not the line that I wanted, instead, it was the line above...
For example:
I have three lines:
aaaaa
bbbbb
ccccc
....
I highlighted "bbbbb" and copied, but the pasted outcome was "aaaaa"...
What happened?
Thanks al ot!
[[alternative
2012 Jan 20
1
free memory in large list?
Hi all,
Lets say I have a huge list which is indexed in the following format:
mylist[[i]][[j]][[k]]
where the size is 100 x 100 x 100000
If I want to set
mylist[[2]][[3]]=NULL
How do I free the memory used by that sub-list?
Thanks a lot!
[[alternative HTML version deleted]]
2008 Mar 21
1
Problem with Makefile.win and environment variable
Dear all,
When porting my package to WinXP I have the following problem:
I need to create an environment variable "MYVAR=c:\mypath" which I have
saved in the control panel "System->My Computer" (under the `Advanced' tab).
I have two files which need to access MYVAR: config.win, Makefile.win
While "config.win" does recognize MYVAR correctly,
2017 Sep 18
1
llvm-link: Missing Dwarf DIE references
I am experiencing an issue combining bitcode files for the purpose of generating the combined bitcodes as a single bitcode file. I would like to have any pointers to help me debug this or maybe it has been seen before and a fix is either being worked on or is done.
I am using the Xcode 9.0 compiler. I believe the Swift code is 3.x. I have reproduced this using the tot llvm-link.
The input
2020 Aug 28
2
Evaluate values in `Sys.setenv`
Hi all,
I would like to know if there is any way to evaluate the values in
`Sys.setenv` before setting the environment variables. For example, if we
want to add a path to the environment variable `PATH`, we can do this in a
terminal
```
> export PATH=~/mypath:$PATH
> echo $PATH
/Users/jeff/mypath:...
```
However, this style of assignment is not allowed in `Sys.setenv`, it
treats its
2000 Dec 29
2
how to create help files
Dear R users,
this is a question for R version 1.2.0 under Windows NT 4.0, regarding the
documentation of ones own functions.
I have ceated a private library for my functions, which works all very well,
apart from that I am not able to create appropriate help files.
For illustration, here is a simple example of where I'm stuck:
> # first, create a simple function f1:
> f1 <-
2012 Apr 16
1
system command to a specific shell (bash)
I need to run a bash command, but when you call system() the default shell
is sh (see my sessionInfo below).
I found the shell command (
http://www.stat.ucl.ac.be/ISdidactique/Rhelp/library/base/html/shell.html)
but it seems to be disappeared in current versions of R?
I am running all this from R CMD BATCH with "system" calls to other R
scripts.
For a little more info, I'm
2013 Apr 15
6
Sorting data.frame and again sorting within data.frame
Dear R forum,
I have a data.frame as defied below -
df = data.frame(names = c("C", "A", "A", "B", "C", "B", "A", "B", "C"), dates = c("4/15/2013", "4/13/2013", "4/15/2013", "4/13/2013", "4/13/2013", "4/15/2013", "4/14/2013",
2002 Jun 20
1
2.2.5, recycle: %U is ok, %u is not
Linux Red Hat 6.x
Using
name = <mypath>/%U
in recycle.conf is ok, while using
name = <mypath>/%u
produces a dir
<mypath>/%u/deleted.item
I need to use %u since %U is before smbusers mapping.
Do you get the same behavior?
Thanks
--
giulioo@pobox.com
2011 Aug 02
1
msdfs and %u
I tryed to use msdfs, but it doesn't work.
Is it my fault, or is it a bug?
log.snmd:
smbd/msdfs.c:295(create_conn_struct)
create_conn_struct: Can't ChDir to new conn path /mypath/host/%u. Error was No such file or directory
Part of smb.conf:
[global]
...
host msdfs = yes
...
[eb]
path = /mypath/data/eb
force group =smb
valid users = @gruppeeb
write list = @gruppeeb
browseable = no
2012 Aug 06
2
Identify points that lie within polygon
I have a complex 2D polygon with thousands of vertices, and I'd like to be
able to identify points from a large set contained within the polygon, and
was wondering if there might be an efficient way of doing this? Any advice
would be useful! Here is a small example of what I mean:
# make polygon
v1<-c(0,1,1,2,1,3,6,7)
v2<-c(1,3,3,5,6,7,8,9)
plot(v1, v2, type = "n" )
2012 Jul 04
4
how to get list of files within a particular local file folder
Dear List,
Say I can use getwd() and setwd() to change my working directory. How can I
read in all the files within that directory using command line (like a ls()
but for the path specified)
Regards
Ajay
Websites-
Technology
http://decisionstats.com
On Wed, Jul 4, 2012 at 3:30 PM, <r-help-request@r-project.org> wrote:
> r-help@r-project.org
[[alternative HTML version deleted]]
2012 Dec 24
2
whats wrong in my codes???
Dear R family,i am trying to plot and save, simultaneously, about 1000. the name of each plot is contained in "names" file. when i run this loop, i get an error.
"Error in plot.new() : Unable to open file 'C:/R/SAVEHERE/myplot_Tak.jpg' for writing". could you please correct the mistake in the loop?
>names<-(names(sp))
>for(a in seq_along(names)){
>mypath
2020 Feb 18
2
[nbdkit PATCH v6] vddk: Add re-exec with altered environment
In the next patch, we want to get rid of the requirement for the user
to supply LD_LIBRARY_PATH pointing to vddk libs, if we can derive it
ourselves from libdir. However, VDDK itself requires LD_LIBRARY_PATH
to be set (because it tries to load libraries that in turn depend on a
bare library name, which no manner of dlopen() hacking can work
around, and implementing la_objsearch() is no better for
2010 Jul 19
2
error when copy and transform within a data frame
# trying to do a copy and a transform within a data frame, but getting the
"arguments imply differing number of rows" error, and I'm not sure why
a=c(1,2,3)
b=c(2,3,4)
c=c("Yes","No","Yes")
d=c("No","Yes","No")
df=data.frame(a,b,c,d)
# the following works fine!
df = transform(df, new=sapply(df[,c(1,2)], FUN = function(x)
2011 May 20
3
"no such file to load -- rails/commands/runner (LoadError)"
Hi,
I am using ruby 1.9.2 and rails 3 for my application.
I have written a bash script which I want to run in cron.
If I directly run the bash file it runs. If I run it through the cron I
get the following error:-
"/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'': no such file to load -- rails/commands/runner (LoadError)
from
2010 Sep 07
5
R 2.11, shell, spaces
Can somebody confirm some unexpected behavior? This is under Windows,
with R 2.11.0 and 2.11.1.
1. Create a trivial test file (I called it test.R) containing:
cat("Success.\n")
2. Load R (Gui or Term) and run:
shell("\"C:\\path\\to\\Rscript.exe\" \"C:\\path\\to\\test.R\"")
In my case, I get various error messages. If the
path\\to\\Rscript.exe has spaces