Displaying 20 results from an estimated 90 matches similar to: "Accessing variable's name as an attribute?"
2011 Mar 05
1
file mode lost in file.copy()?
Hi,
Recently I noticed file.copy() would discard the file mode
information. Is this the expected behaviour or a bug for file.copy()?
> file.create('testfile')
[1] TRUE
> file.info('testfile')
size isdir mode mtime ctime
testfile 0 FALSE 644 2011-03-05 17:06:39 2011-03-05 17:06:39
atime uid gid uname grname
2011 Mar 05
1
file mode lost in file.copy()?
Hi,
Recently I noticed file.copy() would discard the file mode
information. Is this the expected behaviour or a bug for file.copy()?
> file.create('testfile')
[1] TRUE
> file.info('testfile')
size isdir mode mtime ctime
testfile 0 FALSE 644 2011-03-05 17:06:39 2011-03-05 17:06:39
atime uid gid uname grname
2010 Sep 13
2
as.Date() add a day to a date
I'm trying to understand why as.Date() is converting a the modified date of
a file from August 22 to August 23.
> foo <- file.info(file.to.process)
> str(foo)
'data.frame': 1 obs. of 10 variables:
$ size : num 5.37e+09
$ isdir : logi FALSE
$ mode :Class 'octmode' int 436
$ mtime : POSIXct, format: "2010-08-22 23:14:52"
$ ctime : POSIXct, format:
2010 Nov 29
1
tar R command
Hello,
The documentation for the tar command leads me to think there is an internal implementation when the command can't be found in the OS.
However, it doesn't seem to be the case, as I get an empty .tar file generated on a small example I made :
> dir(pattern = "jpg")
[1] "MA56237502_635.jpg"
> file.info("MA56237502_635.jpg")
2024 Dec 10
1
Faster downloads: avoid them if possible
On 12/10/24 00:35, Llu?s Revilla wrote:
> Dear R-devel,
>
> I read with interest the recent blog post on how R will have parallel
> downloads, on blog.r-project.org
> (https://blog.r-project.org/2024/12/02/faster-downloads/index.html).
> Thanks Tomas!
>
> The blog mentions that one of the areas where this will be observed is
> while installing them (which I did!).
2004 Aug 31
1
file.info() on file larger than 2GB
I've got a file that's approximately 2.2GB and it seems to be foiling
file.info(). When I run `stat' from the shell I get
zooey:> stat data.csv
File: `data.csv'
Size: 2271197563 Blocks: 4440280 IO Block: 4096 regular file
Device: 342h/834d Inode: 9994308 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 500/ rpeng) Gid: ( 500/ rpeng)
Access:
2010 Oct 04
1
Globbing inconsistencies, dir() vs. unlink()
I was trying to remove a directory and couldn't figure out why it was
failing:
> dir("~/p4/r-packages/IREval/Users", recursive=T)
[1] "u0048513/p4/r-packages/IREval/DESCRIPTION"
[2] "u0048513/p4/r-packages/IREval/R/IREval.R"
[3] "u0048513/p4/r-packages/IREval/Read-and-delete-me"
[4] "u0048513/p4/r-packages/IREval/tests/general.R"
>
2024 Mar 20
1
Building Packages.
I have a source file with oxygen-style comments (and description & licence files), and I?m trying to build a package. oxygen & devtools seem to work, and the tarball exists, but install.packages balks. Does anyone know what?s happening?
Regards,
Jorgen Harmse.
> roxygenise(package.dir,clean=TRUE)
Setting `RoxygenNote` to "7.3.1"
? roxygen2 requires "Encoding:
1998 Mar 12
0
Code to check Password Server Group Memberships
I am not a member of the samba listserv, but I wanted to contribute
the following code to the samba effort.
The following is clipped from some experimental
changes I have made to my own copy of the samba
source. I have not included all of the changes
because I don't have the time to. But someone should
be able to properly do the integration without too
much effort.
Summary, these
2008 Nov 14
1
how to plot a variable's histogram in the levels of a second variable(1)
Goodmorning to everyone,
I am trying to create a clustered
barplot for the following 2 variables who have more cases but as an
example i am giving you 10 items:
sex聽 socio-economic status
1聽聽聽聽 1
2聽聽聽聽 2
2聽聽聽聽 2
2聽聽聽聽 3
2聽聽聽聽 2
1聽聽聽聽 4
1聽聽聽聽 1
1聽聽聽聽 1
2聽聽聽聽 3
2聽聽聽聽 1
where sex: 1:man, 2:woman
聽聽聽聽聽聽聽聽聽聽 socio-economic status:1:Low, 2:Medium, 3:High, 4:Very High
Does anybody came across with a
2008 Nov 13
1
how to plot a variable's histogram in the levels of a second variable
Goodevening to everyone,
I am trying to create a clustered barplot for the following 2 variables who have more cases but as an example i am giving you 10 items:
sex聽 socio-economic status
1聽聽聽聽 1
2聽聽聽聽 2
2聽聽聽聽 2
2聽聽聽聽 3
2聽聽聽聽 2
1聽聽聽聽 4
1聽聽聽聽 1
1聽聽聽聽 1
2聽聽聽聽 3
2聽聽聽聽 1
where sex: 1:man, 2:woman
聽聽聽聽聽聽聽聽聽聽 socio-economic status:1:Low, 2:Medium, 3:High, 4:Very High
Does anybody came across with
2010 Jul 23
0
[LLVMdev] Global variable's initializer with Abstract or opaque type
Dear LLVM members.
Hi.
I have a question.
I woule like to know whether or not a global variable with abstract or opaque type can has initializer (constructor).
For example,
general assembly code:
%struct.test = type { [10 x i8] }
@ovm = global %struct.test { [10 x i8] c"ovmtest\00\00\00" }
question:
%struct.test = type { [10 x i8], opaque }
@ovm = global %struct.test { [10 x
2012 Dec 10
2
[LLVMdev] how to get and modify a local variable's value through executionEngine?
hello guys,
recently, i successfully get and modify global variable by execution engine.
the functions i used are listed here:
int m=1;
EE->updateGlobalMapping(p->M->getGlobalVariable("x",true),&m);
EE->recompileAndRelinkFunction(EntryFn);
x is the global variable in the module.
but how to modify the local variable in the module?
--
View this message in context:
2012 Dec 10
0
[LLVMdev] how to get and modify a local variable's value through executionEngine?
Dong Chen <jameschennerd at gmail.com> writes:
> hello guys,
> recently, i successfully get and modify global variable by execution engine.
> the functions i used are listed here:
> int m=1;
> EE->updateGlobalMapping(p->M->getGlobalVariable("x",true),&m);
> EE->recompileAndRelinkFunction(EntryFn);
> x is the global variable in the module.
2012 Dec 10
2
[LLVMdev] how to get and modify a local variable's value through executionEngine?
hello Óscar Fuentes,
thanks for your reply, if i use the API provided by parser.h and the program
*.ll i parsed contains local variable, i can get a module have local
variable without defines it first.
i think that module is a structure like AST(i am not sure whether i was
right), this must be a traversal method. am i right or do i misunderstand
something?
--
View this message in context:
2012 Dec 10
0
[LLVMdev] how to get and modify a local variable's value through executionEngine?
Dong Chen <jameschennerd at gmail.com> writes:
> hello Óscar Fuentes,
> thanks for your reply, if i use the API provided by parser.h and the program
> *.ll i parsed contains local variable, i can get a module have local
> variable without defines it first.
> i think that module is a structure like AST(i am not sure whether i was
> right), this must be a traversal method.
2012 Dec 10
2
[LLVMdev] how to get and modify a local variable's value through executionEngine?
hi Óscar Fuentes,
i am new to llvm, so i still have several questions. thanks for you help.
(1)what is SSA form(static single assignment)?
(2)how to traverse the basic blocks? if the module is gained by parser, what
will the basic blocks contain?
i will be on the line, thank you very much
--
View this message in context:
2012 Dec 10
0
[LLVMdev] how to get and modify a local variable's value through executionEngine?
Dong Chen <jameschennerd at gmail.com> writes:
> i am new to llvm, so i still have several questions. thanks for you help.
> (1)what is SSA form(static single assignment)?
Yes.
> (2)how to traverse the basic blocks? if the module is gained by parser, what
> will the basic blocks contain?
Once the LLVM IR bytecode is loaded (or the LLVM assembler is parsed)
you have the same
2012 Dec 10
2
[LLVMdev] how to get and modify a local variable's value through executionEngine?
hi Óscar Fuentes ,
thanks for your reply, but there are still a lot of concepts i don't
understand. there seems to be some document to guide you but hard to
understand. can you show me some basic and easy to learn document or
websites?
thank you
--
View this message in context:
2012 Dec 10
0
[LLVMdev] how to get and modify a local variable's value through executionEngine?
Dong Chen <jameschennerd at gmail.com> writes:
> thanks for your reply, but there are still a lot of concepts i don't
> understand. there seems to be some document to guide you but hard to
> understand. can you show me some basic and easy to learn document or
> websites?
What's missing from http://www.llvm.org/docs/ ?