Skip to content

Commit

Permalink
Bring dev up to date with master
Browse files Browse the repository at this point in the history
  • Loading branch information
brodieG committed Jul 31, 2016
2 parents 315a372 + dc2fac9 commit 6a59955
Show file tree
Hide file tree
Showing 33 changed files with 527 additions and 54 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Title: Compare R Objects with a Diff
Description: Colorized diffs to quickly identify _and understand_ differences
between R objects. See `vignette("diffobj")` for details.
Version: 0.1.1
Date: 2016-07-27
Date: 2016-07-29
Authors@R: c(
person(
"Brodie", "Gaslam", email="[email protected]",
Expand All @@ -13,7 +13,7 @@ Authors@R: c(
"Michael B.", "Allen", email="[email protected]",
role=c("cph"),
comment="C implementation of Myers Diff Algorithm"))
License: GPL-3 | MIT + file LICENSE
License: GPL-3
LazyData: true
URL: https://github.com/brodieG/diffobj
BugReports: https://github.com/brodieG/diffobj/issues
Expand Down
7 changes: 0 additions & 7 deletions LICENSE

This file was deleted.

2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## diffobj 0.1.1

* Turn off unwrapping for _named_ atomic vectors (see #43)
* Proper handling of NULL objects in `diffStr` (Issue #44)
* Fix compilation issues in winbuilder (Issue #41)

## diffobj 0.1.0

Expand Down
15 changes: 15 additions & 0 deletions R/capt.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

# Capture output of print/show/str; unfortunately doesn't have superb handling
# of errors during print/show call, though hopefully these are rare
#
Expand Down
15 changes: 15 additions & 0 deletions R/check.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

is.less_flags <-
function(x) is.chr.1L(x) && isTRUE(grepl("^[[:alpha:]]*$", x))

Expand Down
15 changes: 15 additions & 0 deletions R/core.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

#' @include s4.R

NULL
Expand Down
15 changes: 15 additions & 0 deletions R/diff.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

#' Compare R Objects with a Diff
#'
#' Colorized diffs to quickly identify _and understand_ differences between R
Expand Down
15 changes: 15 additions & 0 deletions R/get.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

# Retrieves data from the data elements of the Diff object based on the index
# values provided in ind. Positive values draw from `tar` elements, and
# negative draw from `cur` elements.
Expand Down
15 changes: 15 additions & 0 deletions R/guides.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

# Split by guides; used by nested structures to retrieve contents within
# guides. Each element has an attribute indicating the indices from the
# text element it was drawn from
Expand Down
15 changes: 15 additions & 0 deletions R/html.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

#' @include misc.R

NULL
Expand Down
15 changes: 15 additions & 0 deletions R/hunks.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.


# Convert ses data into raw hunks that include both match hunks as well as
# actual hunks
Expand Down
15 changes: 15 additions & 0 deletions R/layout.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

# Compute all the different gutter components and report max width

gutter_dat <- function(etc) {
Expand Down
15 changes: 15 additions & 0 deletions R/misc.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

# Returns the indices of the original rle object that correspond to the
# ind rle values

Expand Down
15 changes: 15 additions & 0 deletions R/myerssimple.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

# These are deprecated legacy functions from before we incorporated the
# libmba versions of the myers algo

Expand Down
15 changes: 15 additions & 0 deletions R/pager.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

#' Objects for Specifying Pager Settings
#'
#' Generate pager configuration objects to use as the \code{pager} argument to
Expand Down
15 changes: 15 additions & 0 deletions R/rdiff.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

#' Run Rdiff Directly on R Objects
#'
#' These functions are here for reference and testing purposes. They are
Expand Down
15 changes: 15 additions & 0 deletions R/rds.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

# Check Whether Input Could Be Reference to RDS File and Load if it Is

get_rds <- function(x) {
Expand Down
15 changes: 15 additions & 0 deletions R/s4.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

#' @include misc.R
#' @include styles.R
#' @include pager.R
Expand Down
15 changes: 15 additions & 0 deletions R/set.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

#' @include styles.R

NULL
Expand Down
15 changes: 15 additions & 0 deletions R/styles.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

#' @include html.R

NULL
Expand Down
15 changes: 15 additions & 0 deletions R/subset.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

#' @include s4.R

NULL
Expand Down
15 changes: 15 additions & 0 deletions R/summmary.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# diffobj - Compare R Objects with a Diff
# Copyright (C) 2016 Brodie Gaslam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Go to <https://www.r-project.org/Licenses/GPL-3> for a copy of the license.

#' @include s4.R

NULL
Expand Down
Loading

0 comments on commit 6a59955

Please sign in to comment.