Skip to content

Commit b483e88

Browse files
authored
Merge pull request #13 from lsteinmann/packagedoc
new release
2 parents 580bfae + 964e98f commit b483e88

12 files changed

Lines changed: 166 additions & 81 deletions

File tree

.github/workflows/R-CMD-check.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ on:
44
push:
55
branches:
66
- main
7-
- master
8-
pull_request:
9-
branches:
10-
- main
11-
- master
7+
# pull_request:
8+
# branches:
9+
# - main
10+
# - master
1211

1312
name: R-CMD-check
1413

.travis.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,22 @@ language: R
55
cache: packages
66
latex: false
77

8+
9+
branches:
10+
only:
11+
- main
12+
- packagedoc
13+
14+
815
matrix:
916
include:
1017
- r: 3.3
1118
- r: release
1219
- os: osx
13-
osx_image: xcode7.3
14-
disable_homebrew: true
20+
21+
22+
addons:
23+
apt:
24+
packages:
25+
- libgit2-dev
26+

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ Package: datplot
22
Type: Package
33
Title: Preparation of object dating ranges for density plots
44
Version: 0.2.4
5-
Author: Lisa Steinmann
6-
Maintainer: Lisa Steinmann <lisa.steinmann@rub.de>
5+
Author: anon
6+
Maintainer: anon <anon@anon.de>
77
Description: Converting date ranges into dating 'steps' eases the visualization of changes in e.g. pottery consumption, style and other variables over time. This package provides tools to process and prepare data for visualization.
88
License: CC BY-SA 4.0
99
Encoding: UTF-8

R/data.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,15 @@ NULL
5353
#' @format A data frame with 2878 rows and 9 variables:
5454
#' \describe{
5555
#' \item{\code{ID}}{character COLUMN_DESCRIPTION}
56-
#' \item{\code{ikey}}{character ID at \url{https://inscriptions.packhum.org/}, if available}
56+
#' \item{\code{ikey}}{character ID at \url{https://inscriptions.packhum.org/} / \url{https://edh-www.adw.uni-heidelberg.de/home}, if available}
5757
#' \item{\code{Location}}{factor Findspot of the Inscription (City)}
5858
#' \item{\code{Source}}{character Corpus/Citation of the Inscription}
5959
#' \item{\code{Dating}}{character Original Chronological Assesment, may contain inconsistencies}
6060
#' \item{\code{Language}}{factor Language of the Inscription, can either be Latin, Greek, or both}
6161
#' \item{\code{uncertain_dating}}{logical TRUE if Dating is not certain, FALSE if dating is certain}
6262
#' \item{\code{DAT_min}}{integer lower border of the dating timespan, negative values for BCE, positive values for CE}
6363
#' \item{\code{DAT_max}}{integer uppper border of the dating timespan, negative values for BCE, positive values for CE}
64+
#' \item{\code{URL}}{Link to the inscription (if available) at \url{https://inscriptions.packhum.org/} or \url{https://edh-www.adw.uni-heidelberg.de/home}}
6465
#'}
6566
#' @source Weissová, Barbora. 2019. “Regional Economy, Settlement Patterns and the Road System in Bithynia (4th Century BC - 6th Century AD). Spatial and Quantitative Analysis.” Dissertation, Berlin: Freie Universität Berlin. \url{https://refubium.fu-berlin.de/handle/fub188/23730}, partially after \url{https://inscriptions.packhum.org/}
6667
"Inscr_Bithynia"

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- badges: start -->
2-
[![R build status](https://github.com/lsteinmann/datplot/workflows/R-CMD-check/badge.svg)](https://github.com/lsteinmann/datplot/actions)
3-
[![Travis build status](https://travis-ci.com/lsteinmann/datplot.svg?branch=master)](https://travis-ci.com/lsteinmann/datplot)
4-
[![Codecov test coverage](https://codecov.io/gh/lsteinmann/datplot/branch/master/graph/badge.svg)](https://codecov.io/gh/lsteinmann/datplot?branch=master)
2+
[![R build status](https://github.com/anonymousgit/datplot/workflows/R-CMD-check/badge.svg)](https://github.com/anonymousgit/datplot/actions)
3+
[![Travis Build Status](https://travis-ci.com/anonymousgit/datplot.svg?token=qpxyBQYqepYayg8rYHnD&branch=main)](https://travis-ci.com/anonymousgit/datplot)
4+
[![Codecov test coverage](https://codecov.io/gh/anonymousgit/datplot/branch/master/graph/badge.svg)](https://codecov.io/gh/anonymousgit/datplot?branch=main)
55
<!-- badges: end -->
66

77
datplot
@@ -32,11 +32,11 @@ Installation
3232
-------
3333
'datplot' is not currently on CRAN. It can be installed from GitHub with devtools:
3434

35-
devtools::install_github("lsteinmann/datplot")
35+
devtools::install_github("anonymousgit/datplot")
3636

3737
Or via downloading the latest release and installing from the file:
3838

39-
install_local(path = "../datplot_0.2.4.tar.gz")
39+
devtools::install_local(path = "../datplot_0.2.4.tar.gz")
4040

4141
Contact
4242
-------

data-raw/Inscr_Bithynia.R

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ library(tidyverse)
55

66
inscriptions <- readxl::read_excel(system.file('extdata', 'Bithynia_Inscriptions.xlsx', package = 'datplot', mustWork = TRUE))
77

8+
inscriptions <- inscriptions %>%
9+
mutate(ikey = na_if(ikey, "N / A"),
10+
ikey = gsub("2PH", "PH", ikey),
11+
ikey = gsub("v", "PH", ikey),
12+
URL = NA)
13+
14+
repl <- grep("HD", inscriptions$ikey)
15+
inscriptions$URL[repl] <- paste("https://edh-www.adw.uni-heidelberg.de/edh/inschrift/",
16+
gsub("HD", "", inscriptions$ikey[repl]), sep = "")
17+
repl <- grep("PH", inscriptions$ikey)
18+
inscriptions$URL[repl] <- paste("https://epigraphy.packhum.org/text/",
19+
gsub("PH", "", inscriptions$ikey[repl]), sep = "")
20+
21+
822
inscriptions$ID <- paste("I_", 1:nrow(inscriptions), sep = "")
923
inscriptions <- inscriptions %>%
1024
rename(Dating = `Chronological Frame`) %>%
@@ -127,7 +141,7 @@ for (r in sel) {
127141

128142
join_dating <- rbind(join_dating, num_dating[!is.na(num_dating$DAT_min),])
129143
num_dating <- num_dating[which(is.na(num_dating$DAT_min)),]
130-
unique(num_dating$Dating)[1:20]
144+
#unique(num_dating$Dating)[1:20]
131145

132146
join_dating$DAT_min[which(join_dating$DAT_min == 0)] <- 1
133147
join_dating$DAT_max[which(join_dating$DAT_max == 0)] <- -1
@@ -153,7 +167,10 @@ inscriptions <- left_join(inscriptions, join_dating, by = "Dating")
153167
inscriptions[which(inscriptions$ID == "I_1162"),"DAT_max"] <- 63
154168
inscriptions[which(inscriptions$ID == "I_2725"),c("DAT_min", "DAT_max")] <- inscriptions[which(inscriptions$ID == "I_2725"),c("DAT_max", "DAT_min")]
155169

156-
inscriptions <- inscriptions[,c(6,1:5,7:9)]
170+
171+
172+
inscriptions <- inscriptions[,c(7,1:5,8:10,6)]
173+
157174

158175
attr(inscriptions, "contact") <-
159176
"Anonymous Anonymous (anonymous@anonymous.com), Anonymous Anonymous (anonymous@anonymous.com)"
@@ -172,6 +189,7 @@ attr(inscriptions$uncertain_dating, "descr") <-
172189
"TRUE if Dating is not certain, FALSE if dating is certain"
173190
attr(inscriptions$DAT_min, "descr") <- "lower border of the dating timespan"
174191
attr(inscriptions$DAT_max, "descr") <- "uppper border of the dating timespan"
192+
attr(inscriptions$URL, "descr") <- "Link to the Inscription at https://inscriptions.packhum.org/"
175193

176194
#write.table(inscriptions, file = "inscriptions.csv",
177195
# fileEncoding = "UTF-8", sep = ";", row.names = FALSE)

data/Inscr_Bithynia.rda

5.39 KB
Binary file not shown.
-10 Bytes
Binary file not shown.

inst/literatur.bib

Lines changed: 52 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
% Encoding: UTF-8
22
33
@Www{BAPD,
4-
title = {Beazley Archive Pottery Database (BAPD)},
5-
owner = {University of Oxford},
6-
timestamp = {2018-04-27},
4+
title = {Beazley Archive Pottery Database ({{BAPD}})},
5+
author = {University of Oxford},
6+
urldate = {2018-04-27},
77
url = {https://www.beazley.ox.ac.uk/pottery/default.htm},
88
}
99

@@ -20,7 +20,7 @@ @article{datplotarticle
2020

2121
@thesis{weissova2019,
2222
title = {Regional Economy, Settlement Patterns and the Road System in {{Bithynia}} (4th century {{BC}} - 6th century {{AD}}). {{Spatial}} and {{Quantitative Analysis}}},
23-
author = {Weissov\'a, Barbora},
23+
author = {Weissova, Barbora},
2424
date = {2019},
2525
institution = {{Freie Universit\"at Berlin}},
2626
location = {{Berlin}},
@@ -33,7 +33,7 @@ @thesis{weissova2019
3333
@article{weissova_HinterlandNikaiaNicaea_2019,
3434
title = {The {{Hinterland}} of {{Nikaia}}/{{Nicaea}}/{{Iznik}}: {{Analyzing}} the {{Hellenistic Roman}} and {{Late Antique Bithynian Landscape}} through {{Remote Sensing}} and {{GIS Techniques}}},
3535
shorttitle = {The {{Hinterland}} of {{Nikaia}}/{{Nicaea}}/{{Iznik}}},
36-
author = {Weissov\'a, Barbora and Brigand, Robin and Polla, Silvia},
36+
author = {Weissova, Barbora and Brigand, Robin and Polla, Silvia},
3737
date = {2019},
3838
journaltitle = {eTopoi Journal for Ancient Studies},
3939
volume = {8},
@@ -68,10 +68,9 @@ @article{orton_CatchUnitResearch_2017
6868
}
6969

7070
@incollection{johnson_AoristicAnalysisSeeds_2004,
71-
ids = {:unknunknown\_AoristicAnalysisSeeds\_2004},
7271
title = {Aoristic Analysis: Seeds of a New Approach to Mapping Archaeological Distributions through Time},
7372
booktitle = {2003 - Enter the Past. The E-way into the four Dimensions of Cultural Heritage. CAA 2003. Computer Applications and Quantitative Methods in Archaeology},
74-
author = {Johnson, I.},
73+
author = {Johnson, Ian},
7574
editor = {B\"orner, W. and Goriany, M.},
7675
date = {2004},
7776
publisher = {Archaeopress},
@@ -81,6 +80,52 @@ @incollection{johnson_AoristicAnalysisSeeds_2004
8180

8281

8382

83+
@article{baxter_ReinventingwheelModelling_2016,
84+
title = {Reinventing the Wheel? Modelling temporal uncertainty with applications to brooch distributions in Roman Britain},
85+
shorttitle = {Reinventing the wheel?},
86+
author = {Baxter, Mike J. and Cool, H.E.M.},
87+
date = {2016-02},
88+
journaltitle = {Journal of Archaeological Science},
89+
volume = {66},
90+
pages = {120--127},
91+
doi = {10.1016/j.jas.2015.12.007}
92+
}
93+
94+
@article{crema_probabilisticframeworkassessing_2010,
95+
title = {A probabilistic framework for assessing spatio-temporal point patterns in the archaeological record},
96+
author = {Crema, Enrico R. and Bevan, Andrew and Lake, Mark W.},
97+
date = {2010-05},
98+
journaltitle = {Journal of Archaeological Science},
99+
volume = {37},
100+
pages = {1118--1130},
101+
doi = {10.1016/j.jas.2009.12.012},
102+
number = {5}
103+
}
104+
105+
106+
107+
108+
@book{shennan_Quantifyingarchaeology_1988,
109+
title = {Quantifying Archaeology},
110+
author = {Shennan, Stephen},
111+
date = {1988},
112+
publisher = {Edinburgh University Press},
113+
location = {Edinburgh}
114+
}
115+
116+
117+
@article{baxter_histogramimprovedapproachessimple_1996,
118+
title = {Beyond the Histogram -- Improved Approaches to Simple Data Display in Archaeology using Kernel Density Estimates},
119+
author = {Baxter, Mike J. and Beardah, Christian C.},
120+
date = {1996},
121+
journaltitle = {Archeologia e calcolatori},
122+
volume = {7},
123+
pages = {397--408},
124+
number = {1}
125+
}
126+
127+
128+
84129

85130

86131

man/Inscr_Bithynia.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)