Skip to content

Commit

Permalink
fix CRAN error
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonGreenhill committed Dec 2, 2024
1 parent fe00bb9 commit c1b69a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rcldf
Type: Package
Title: rcldf - Read Linguistic Data In The Cross Linguistic Data Format (CLDF)
Title: RCLDF - Read Linguistic Data In The Cross Linguistic Data Format (CLDF)
Version: 1.3.1
Author:
person(given = c("Simon", "J."), family = "Greenhill", email = "[email protected]", role = c("aut", "cre"))
Expand Down
4 changes: 2 additions & 2 deletions R/summary.cldf.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ summary.cldf <- function(object, ...) {
if (!inherits(object, "cldf")) stop("'object' must inherit from class cldf")
cat("A Cross-Linguistic Data Format (CLDF) dataset:\n")
if ("dc:title" %in% names(object$metadata)) {
cat(sprintf("Name: %s\n", object$metadata$`dc:title`))
cat(sprintf("Name: %s\n", object$metadata[['dc:title']]))
} else {
cat(sprintf("Name: %s\n", object$name))
}

if ("dc:creator" %in% names(object$metadata)) {
cat(sprintf("Creator: %s\n", object$metadata$`dc:creator`))
cat(sprintf("Creator: %s\n", object$metadata[['dc:creator']]))
}

cat(sprintf("Path: %s\n", object$base_dir))
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# rcldf - a R library for reading CLDF files

[![Coverage status](https://codecov.io/gh/SimonGreenhill/rcldf/branch/master/graph/badge.svg)](https://codecov.io/github/SimonGreenhill/rcldf?branch=master)

[![codecov](https://codecov.io/gh/SimonGreenhill/rcldf/graph/badge.svg?token=H7T57lHypY)](https://codecov.io/gh/SimonGreenhill/rcldf)

# rcldf is a library for R to read Cross-Linguistic Data files (CLDF)

Expand Down

0 comments on commit c1b69a1

Please sign in to comment.