-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
standardize/style code formatting #117
Conversation
Used styler (i.e., style_dir("R/",...)) package to adhere to tidyverse default consistent code style.
Did you build and check after styling? Always a good idea to ensure it all still works.
Sent from an undisclosed location - check with the NSA.
… On May 11, 2020, at 11:05 PM, Erick Oduniyi ***@***.***> wrote:
Used styler (i.e., style_dir("R/",...)) package to adhere to tidyverse default consistent code style.
You can view, comment on, or merge this pull request online at:
#117
Commit Summary
standardize/style code formatting
File Changes
M hyperSpec/R/Arith.R (209)
M hyperSpec/R/Compare.R (59)
M hyperSpec/R/DollarNames.R (16)
M hyperSpec/R/Math.R (48)
M hyperSpec/R/Summary.R (190)
M hyperSpec/R/aggregate.R (123)
M hyperSpec/R/all.equal.R (100)
M hyperSpec/R/apply.R (188)
M hyperSpec/R/as.data.frame.R (228)
M hyperSpec/R/barbiturates.R (16)
M hyperSpec/R/bind.R (226)
M hyperSpec/R/call.list.R (21)
M hyperSpec/R/chk.hy.R (9)
M hyperSpec/R/chondro.R (38)
M hyperSpec/R/colMeans.R (69)
M hyperSpec/R/collapse.R (585)
M hyperSpec/R/count_lines.R (40)
M hyperSpec/R/cov.R (38)
M hyperSpec/R/decomposition.R (133)
M hyperSpec/R/deprecated.R (40)
M hyperSpec/R/dim.R (60)
M hyperSpec/R/dimnames.R (60)
M hyperSpec/R/droplevels.R (36)
M hyperSpec/R/empty.R (20)
M hyperSpec/R/extract.R (154)
M hyperSpec/R/factor2num.R (10)
M hyperSpec/R/fileio.optional.R (65)
M hyperSpec/R/fix_spc_colnames.R (18)
M hyperSpec/R/flu.R (27)
M hyperSpec/R/getbynames.R (25)
M hyperSpec/R/guesswavelength.R (69)
M hyperSpec/R/hyperspec-class.R (34)
M hyperSpec/R/hyperspec-package.R (12)
M hyperSpec/R/initialize.R (418)
M hyperSpec/R/labels.R (102)
M hyperSpec/R/laser.R (14)
M hyperSpec/R/levelplot.R (106)
M hyperSpec/R/makeraster.R (79)
M hyperSpec/R/map.identify.R (94)
M hyperSpec/R/map.sel.poly.R (123)
M hyperSpec/R/mark.dendrogram.R (78)
M hyperSpec/R/mark.peak.R (25)
M hyperSpec/R/matlab.palette.R (28)
M hyperSpec/R/mean_sd.R (122)
M hyperSpec/R/merge.R (161)
M hyperSpec/R/mvtnorm.R (99)
M hyperSpec/R/normalize01.R (77)
M hyperSpec/R/options.R (141)
M hyperSpec/R/orderwl.R (32)
M hyperSpec/R/paracetamol.R (11)
M hyperSpec/R/paste.row.R (123)
M hyperSpec/R/pearson.dist.R (30)
M hyperSpec/R/plot.R (152)
M hyperSpec/R/plotc.R (146)
M hyperSpec/R/plotmap.R (66)
M hyperSpec/R/plotmat.R (109)
M hyperSpec/R/plotspc.R (675)
M hyperSpec/R/plotvoronoi.R (54)
M hyperSpec/R/qplot.R (233)
M hyperSpec/R/qplotmixmap.R (302)
M hyperSpec/R/quantile.R (38)
M hyperSpec/R/rbind.fill.R (167)
M hyperSpec/R/read.ENVI.HySpex.R (41)
M hyperSpec/R/read.ENVI.Nicolet.R (184)
M hyperSpec/R/read.ENVI.R (425)
M hyperSpec/R/read.asc.Andor.R (31)
M hyperSpec/R/read.asc.PerkinElmer.R (31)
M hyperSpec/R/read.ini.R (35)
M hyperSpec/R/read.jdx.R (493)
M hyperSpec/R/read.mat.Cytospec.R (60)
M hyperSpec/R/read.mat.Witec.R (30)
M hyperSpec/R/read.spc.Kaiser.R (106)
M hyperSpec/R/read.spc.R (1487)
M hyperSpec/R/read.spc.Shimadzu.R (9)
M hyperSpec/R/read.spe.R (308)
M hyperSpec/R/read.txt.Horiba.R (56)
M hyperSpec/R/read.txt.Renishaw.R (212)
M hyperSpec/R/read.txt.Shimadzu.R (399)
M hyperSpec/R/read.txt.Witec.R (458)
M hyperSpec/R/read.txt.long.R (56)
M hyperSpec/R/read.txt.wide.R (58)
M hyperSpec/R/replace.R (206)
M hyperSpec/R/sample.R (136)
M hyperSpec/R/scale.R (24)
M hyperSpec/R/seq.R (71)
M hyperSpec/R/show.R (128)
M hyperSpec/R/spc.NA.approx.R (157)
M hyperSpec/R/spc.bin.R (70)
M hyperSpec/R/spc.fit.poly.R (275)
M hyperSpec/R/spc.identify.R (225)
M hyperSpec/R/spc.loess.R (52)
M hyperSpec/R/spc.rubberband.R (144)
M hyperSpec/R/spc.spline.R (41)
M hyperSpec/R/split.R (36)
M hyperSpec/R/split.string.R (35)
M hyperSpec/R/splitdots.R (44)
M hyperSpec/R/subset.R (16)
M hyperSpec/R/sweep.R (54)
M hyperSpec/R/trellis.factor.key.R (50)
M hyperSpec/R/units.R (6)
M hyperSpec/R/unittest.R (33)
M hyperSpec/R/validate.R (22)
M hyperSpec/R/vandermonde.R (65)
M hyperSpec/R/wc.R (77)
M hyperSpec/R/wl.R (115)
M hyperSpec/R/wl2i.R (258)
M hyperSpec/R/wleval.R (82)
M hyperSpec/R/write.txt.long.R (124)
M hyperSpec/R/write.txt.wide.R (134)
M hyperSpec/R/y-pastenames.R (30)
M hyperSpec/R/zzz.R (22)
Patch Links:
https://github.com/cbeleites/hyperSpec/pull/117.patch
https://github.com/cbeleites/hyperSpec/pull/117.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I will review once #111 is resolved and I can B & C locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest, I did not check the code thoroughly, but on the first glance it looks fine. Since it was automatically generated, it's probably fine.
I checked out this branch locally and merged with the pull request #118 to have the correct build system. I could build everything with make bootstrap
and invoked devtools::test('hyperSpec/')
to run all unit tests.
══ Results ════════════════════════════════════════════════════════
Duration: 30.7 s
OK: 517
Failed: 0
Warnings: 0
Skipped: 8
Great job, everything works! 🥇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I found a few files where spacing to align things was not recognized by styler::style()
, but I think it's easier to take care of that after this monster-commit is merged.
The files/functions are:
pooled.cov()
makeraster()
- the generic
plot()
- read.spe.R
WOW, nice catch! |
A few remarks:
The author of styler package Yihui Xie thinks, that after automatic corrections the code must be thoroughly checked (by unit test or manually). But as unit test did not fail, it should be OK.
I agree. |
... nothing further to be said...
Used styler (i.e., style_dir("R/",...)) package to adhere to tidyverse default consistent code style.