Thanks a lot for the feedback, Dirk and Mehmet,
My (large) test-code is in RUnit and so I'm glad to hear that it is fine.
RUnit worked very well for me and I do not have a reason to switch.
[[alternative HTML version deleted]]
__
R-help@r-proje
t. If it makes a difference, I
do _not_ use roxygen and stay close to R-exts standards (ok, a testing
framework I'd like to have).
Thanks for any advise / opinions,
Hans-Peter
[[alternative HTML version deleted]]
__
R-help@r-project.org ma
ee for the costs but this is not a
precondition. My email: gchappi, and then gmail.com.
Cheers, Hans-Peter
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/li
Writing multiple tabs was never supported in the free version (only in
Pro). XLConnect certainly looks good and also has the advantage that
it is FOSS, something I cannot do because of the usage of a
proprietary library.
Cheers,
Hans-Peter
__
R-help@r
ed to learn what you
mean with "better luck reading/writing". Thanks a lot and
Cheers,
Hans-Peter
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/p
uot;,
Count = 1,
Key = "76991137f5f554a288e8cee343a24722",
WhereToStore = "ProgramFolder" ) )
Info/download at http://swissr.org. Direct download links at
http://dl.dropbox.com/u/2602516/swissrpkg/index.htm
ment.
Both updated packages are available now from www.swissr.org/download
or - full listing - here:
http://dl.dropbox.com/u/2602516/swissrpkg/index.html.
Cheers,
Hans-Peter
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
s for me :-(
There are many ways to read/write data in R:
* Other than load/save you could use read.table/write.table (see R
Data Import/Export).
* Using Excel files is not the recommended way. However when you
want/need it, there are several options (see
http://rwiki.sciviews.org/doku.php?id=tips:data-io:
;, 'what' arguments dropped (always provide full info)
- SOME LIST ELEMENT names have been RENAMED/ADDED
- some double types have become integers
o date time helper functions:
- properly initialize format settings (with GetUserDefaultLangID, it proba
r
R2.12 building atm))
When executing 'library(xlsReadWrite)' with the updated dll, the
startup message will read '..version 1.5.2 (sha1:
)'. Changes have been pushed as
http://github.com/swissr/xlsreadwrite/commit/17a8d1c076b622f842cae443ebff00b1bb254bbe.
Ch
ystem' --
o issue tracking (developer) link change:
- http://dev.swissr.org (was: https://redmine.swissr.org)
- allow guest login and directly mention credentials
Cheers,
Hans-Peter
___
R-packages mailing list
r-packa...@r-project.org
https://stat.ethz.ch/m
or
library(xlsReadWrite)
write.xls(tab, "somefile.xls") # not .xlsx
or lots of other possibilities (e.g. RODBC, RExcel, gdata, WriteXLS)
you would have found searching the mailling list archive or looking in
the R import/export manual or the R wiki...
Cheers,
ile.exists(tfn) : invalid 'file' argument
The 'read.xls' function in the the xlsReadWrite package (Win32 only)
doesn't have external dependencies. Might be an option as well.
Cheers,
Hans-Peter
__
R-help@r-project.org mailing list
htt
e .txt (after having formatted the dates in the
> format you need, e.g., mm/dd/). And then you can read it
> (including dates) into R no problems.
If you are on windows and (can) use .xls files, my xlsReadWrite
package should work well with dates.
Cheers,
Hans-Peter
___
d and check ?xls.lic first; www.swissr.org). I'm
just finishing 'some' :-) RUnit tests and a new version will be
released tomorrow or after tomorrow.
Cheers,
Hans-Peter
rfile.img <- sub("origData", "origImage", rfile, fixed = TRUE)
wfile.img <- sub("tmpWr
Many thanks! The missing empty line was the problem, and M-q works great.
Hans-Peter
> Esc-q or M-q will wrap a whole paragraph. The only problem is that you need
> to make sure the paragraph you want to wrap is separated from other
__
R-
c-j', ...
There certainly must be some easier way to reformat a paragraph?
(I tried 'm-c-q' (not defined) and 'm-c-\' (but was not able to input
the backslash); I'm on GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600).
Thanks for your help!
Hans-Peter
_
, i.e. non-cran version, R2.10.x):
1.5.1:
http://dl.dropbox.com/u/2602516/swissrpkg/bin/win32/2.10/xlsReadWrite_1.5.1.zip
devel:
http://dl.dropbox.com/u/2602516/swissrpkg/bin/win32/2.10/xlsReadWrite_0.0.0.zip
Hope this helps!
(Otherwise feel free to contact me by email (gchappi gmail), this
really
0.0-versions are development versions. They will be updated
when there is something 'fixworthy' while a new official version is
'in wait mode'. Currently 0.0.0 fixes a bug with non-absolute file
paths in 1.5.1.
Cheers,
Hans-Peter
__
t to html, then manually hack around with a
texteditor..., not a good idea, imho. RDCOM is better.
Hans-Peter
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/pos
eR, password: namaste
(sha1 fingerprint: A4:28:1D:3A:C3:96:01:4B:8F:4C:FC:AD:E7:B5:B7:84:B1:6B:7A:E7)
Cheers,
Hans-Peter
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project
ol system, I
would recommend looking into a distributed one. - Personally I use
git. http://git-scm.com/ is a good start, http://www.github.com can be
used to store code 'in the cloud'.
Cheers,
Hans-Peter
__
R-help@r-project.org mailing lis
git but Subversion (SVN) may be easier and do the job).
Cheers,
Hans-Peter
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide c
2009/7/2 Chris Anderson :
> Is there a way to export multiple datasets into multiple excel spreadsheets
> using xlsReadWritePro or with xlsReadWrite?
I have answered the question in your other thread. See:
http://thread.gmane.org/gmane.comp.lang.r.general/154614/focus=154752
Cheers,
Hans
the recent 2.9.1.
Cheers,
Hans-Peter
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
# first sheet
shall be active when spreadsheet is opened
xls.close( xls )# save and
close memory represention
Hope this helps/clarifies things. Otherwise feel free to ask again (PM
prefered as it's probably better not to use the r-help mailli
> Is there any alternatives to read Excel file ?
RODBC, RExcel, gdata, use COM (search this forum for code).
Cheers,
Hans-Peter
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-
Arg, I already needed to fix the bundle. If anyone downloaded it
yesterday, please update, the help index building was broken (on
Macs). Should work now.
Repo/Infos: http://github.com/swissr/rmate.tmbundle/tree/master
--
Regards,
Hans-Peter
__
R-help
(http://github.com/swissr/rmate.tmbundle/downloads)
- unzip and rename to 'rmate.tmbundle' (i.e. remove swissr- and -hash)
- double click to import into TextMate'
Cheers,
Hans-Peter
__
R-help@r-project.org mailing list
https://stat.ethz.ch/m
' argument. But this is something
that should be supported since longtime also in the normal
xlsReadWrite. Thanks for reminding me :-) and it's now - at least -
in my Redmine tracker.
Cheers,
Hans-Peter
__
R-help@r-project.org mailing list
h
R bundle (or RMate, own
variant thereof). On Windows I use E-Texteditor, TM's cousin. Albeit
there are some bugs & issues, E-Texteditor is quite a decent editor
and with the RMate bundle (will publish it sometime) lines can be sent
to RGui and info/help pops up. Wouldn't go back to Ti
2009/5/28 Dieter Menne :
> If you only have the sheet names, you should use package xlsReadWrite which
> is rather fast, but has some limitations in the non-commercial version.
what limitations, i.e. features do you miss?
Cheers,
Hans-Peter
__
h a solution possible?
What about batch scripts which would be called by your GUI? (maybe
you could even skip the gui...)
(see ?Rscript (unix alike) or Windows FAQ, 2.12)
--
Regards,
Hans-Peter
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailma
>> rename(x,"C","Z")
> x <- rename(x,"C","Z")
> x
A B Z D
1 2 3 4
--
Regards,
Hans-Peter
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the po
w RUnit tests, adapted build scripts, etc.,
I'll ask again if 'xlsReadWrite' will be accepted on CRAN in this new
source-only form. I hope so, but if not then there are other
possibilities. In any case I intend to put the repo at some public
space (most probably github).
Cheers,
Hans-Pete
imho. Reading natively without depending on
additional layers (driver, perl, COM) benefits too. - If you mean
'more R standard' or OSS then I agree.
Cheers,
Hans-Peter
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-h
2009/3/9 Phil Spector :
> The xlsReadWrite package provides write.xls for Windows,
but it cannot write _multiple_ spreadsheets
--
Regards,
Hans-Peter
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
t uses a third party library (Flexcel, TMSSoftware). This
library supports FreePascal which means that theoretically
xlsReadWrite could be compiled for Linux/Mac (tried once, didn't
succeed, will try again later (now also using Macs and
Debian/Ubuntu)).
--
Regards,
Hans-Peter
ndatetime' for the 'colClasses' argument be useful?
--
Regards,
Hans-Peter
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
calculate and prepare full data to write
calc <- dat[,2] + 1
dat <- cbind( dat[,1], dat[,2], calc, dat[,3] )
# write (sheet will be overwritten with new data)
#write.xls( dat, myfile )
--
Regards,
Hans-Peter
__
R-help@r-project.org mailing list
I need to have installed all packages which are required by
packages to be built binary (source builds are ok)?
Cheers,
Hans-Peter
---
Macintosh:mxFinance chappi$ R CMD BUILD --binary mxFinance
* checking for file 'mxFinance/DESCRIPTION' ... OK
* preparing
> Thanks for the answers,
> but I'm looking for an editor like Tinn-R.
What about VM Fusion and continue to use Tinn-R then?
--
Regards,
Hans-Peter
PS: I use TextMate (and like it)
__
R-help@r-project.org mailing list
https://stat.ethz
Brochure: http://treetron.googlepages.com/xlsReadWrite_Pro_Datasheet.pdf
Best regards,
Hans-Peter
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.h
I recently stumbled across www.gotAPI.com which is a really nice site to
lookup infos of many different languages. - Wouldn't it be a good idea to
submit a request to add R?
--
Regards,
Hans-Peter
[[alternative HTML version deleted]]
___
ile = fn, dateTimeAs = "numeric" )
dat[,3] <- dateTimeToStr( dat[,3] ) # or any other conversion function
dat
}
'dateTimeAs' argument is (probably) needed to retrieve plain numbers and
override the default conversion to date string.
--
Regards,
d.xls( "D:\\file.xls", colClasses = c( rep( NA , 2 ),"isodate", rep(
NA, 9 ) ) ) should work. But you still have to know the total number of
columns. (The pro version does have a xls.info command and/or you could read
in just the first row and check its content).
--
Regards,
Hans-P
adsheets -> you can also find my package xlsReadWrite which natively
reads Excel files (Windows only).
Using *.csv file is probably the more common/recommended way but be careful
with 'cutted decimal places'.
--
Regards,
Hans-Peter
[[alte
>
> I looked at the package (it's
> http://cran.r-project.org/web/packages/xlsReadWrite/index.html) but
> it's windows only. So no joy yet.
which platform would you need it?
Regards,
Hans-Peter
[[alternative HTML version deleted]]
___
r with the writing.
If you provide me a small mydat dataset I could probably help better.
Best,
Hans-Peter
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do rea
RAN mirror)->(Select the package)->done.
Best regards,
Hans-Peter
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.
>
> After some private email with some high level programmer (Gabor), I have
shouldn't that rather be: high in knowledge but low in level?
Best,
Hans-Peter
[[alternative HTML vers
need/want it. Otherwise there is always our free xlsReadWrite
version (where our own code is free (GPLv2).
Best regards,
Hans-Peter
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r
ore about this
> function?
> help("::")
--
Regards,
Hans-Peter
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-p
l be a
Mac, therefore...)
- it reads and write in the Excel 97-2003 xls format (BIFF8).
(With Excel 2007 you'd have to choose the compatibility mode for now and
thus fall back to the 65536 rows and 256 columns limit).
Regards,
Hans-Peter
[[altern
Is it possible to download somewhere the former 2.5.1 windows bin version of
R? (Need it for testing).
Thanks,
Hans-Peter
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
ever starts from row 10. So to read data from column one I use
> colClasses="character". But this overrules the isodatetime.
another possibility would be to give a vector for the colClasses argument,
e.g.
colClasses = c( "character", "character", "double&q
56 matches
Mail list logo