Skip to content

Commit

Permalink
[DOCS] Standardize Markdown code blocks: word case and whitespace (ap…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton authored and jiayuasu committed Dec 8, 2023
1 parent 0d852f3 commit fb565d1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions R/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ enabling higher-level access through a `{dplyr}` backend and familiar R function
## Installation
To use Apache Sedona from R, you just need to install the apache.sedona package; Spark dependencies are managed directly by the package.

``` r
```r
# Install released version from CRAN
install.packages("apache.sedona")
```
Expand All @@ -21,7 +21,7 @@ To use the development version, you will need both the latest version of the pac

To get the latest R package from GtiHub:

``` r
```r
# Install development version from GitHub
devtools::install_github("apache/sedona/R")
```
Expand All @@ -40,7 +40,7 @@ The path to the sedona-spark-shaded jars needs to be put in the `SEDONA_JAR_FILE

The first time you load Sedona, Spark will download all the dependent jars, which can take a few minutes and cause the connection to timeout. You can either retry (some jars will already be downloaded and cached) or increase the `"sparklyr.connect.timeout"` parameter in the sparklyr config.

``` r
```r
library(sparklyr)
library(apache.sedona)

Expand All @@ -51,7 +51,7 @@ sc <- spark_connect(master = "local")
polygon_sdf <- spark_read_geojson(sc, location = "/tmp/polygon.json")
```

``` r
```r
mean_area_sdf <- polygon_sdf %>%
dplyr::summarize(mean_area = mean(ST_Area(geometry)))
print(mean_area_sdf)
Expand Down
2 changes: 1 addition & 1 deletion R/vignettes/articles/apache-sedona.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ to Sedona visualization routines. For example, the following is
essentially the R equivalent of [this example in
Scala](https://github.com/apache/sedona/blob/f6b1c5e24bdb67d2c8d701a9b2af1fb5658fdc4d/viz/src/main/scala/org/apache/sedona/viz/showcase/ScalaExample.scala#L142-L160).

``` {r}
```{r}
resolution_x <- 1000
resolution_y <- 600
boundary <- c(-126.790180, -64.630926, 24.863836, 50.000)
Expand Down
10 changes: 5 additions & 5 deletions docs/api/flink/Function.md
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ Format: `ST_H3CellDistance(cell1: Long, cell2: Long)`
Since: `v1.5.0`

Example:
```SQL
```sql
select ST_H3CellDistance(ST_H3CellIDs(ST_GeomFromWKT('POINT(1 2)'), 8, true)[1], ST_H3CellIDs(ST_GeomFromWKT('POINT(1.23 1.59)'), 8, true)[1])
```

Expand Down Expand Up @@ -1291,7 +1291,7 @@ Format: `ST_H3CellIDs(geom: geometry, level: Int, fullCover: true)`
Since: `v1.5.0`

Example:
```SQL
```sql
SELECT ST_H3CellIDs(ST_GeomFromText('LINESTRING(1 3 4, 5 6 7)'), 6, true)
```

Expand All @@ -1318,7 +1318,7 @@ Format: `ST_H3KRing(cell: Long, k: Int, exactRing: Boolean)`
Since: `v1.5.0`

Example:
```SQL
```sql
select ST_H3KRing(ST_H3CellIDs(ST_GeomFromWKT('POINT(1 2)'), 8, true)[1], 1, false), ST_H3KRing(ST_H3CellIDs(ST_GeomFromWKT('POINT(1 2)'), 8, true)[1], 1, true)
```

Expand All @@ -1342,7 +1342,7 @@ Format: `ST_H3ToGeom(cells: Array[Long])`
Since: `v1.5.0`

Example:
```SQL
```sql
SELECT ST_H3ToGeom(ST_H3CellIDs(ST_GeomFromWKT('POINT(1 2)'), 8, true)[0], 1, true))
```

Expand Down Expand Up @@ -2189,7 +2189,7 @@ Since: `v1.4.0`

Example:

```SQL
```sql
SELECT ST_S2CellIDs(ST_GeomFromText('LINESTRING(1 3 4, 5 6 7)'), 6)
```

Expand Down
10 changes: 5 additions & 5 deletions docs/api/sql/Function.md
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ Format: `ST_H3CellDistance(cell1: Long, cell2: Long)`
Since: `v1.5.0`

Spark SQL example:
```SQL
```sql
select ST_H3CellDistance(ST_H3CellIDs(ST_GeomFromWKT('POINT(1 2)'), 8, true)[0], ST_H3CellIDs(ST_GeomFromWKT('POINT(1.23 1.59)'), 8, true)[0])
```

Expand Down Expand Up @@ -1302,7 +1302,7 @@ Format: `ST_H3CellIDs(geom: geometry, level: Int, fullCover: Boolean)`
Since: `v1.5.0`

Spark SQL example:
```SQL
```sql
SELECT ST_H3CellIDs(ST_GeomFromText('LINESTRING(1 3 4, 5 6 7)'), 6, true)
```

Expand All @@ -1329,7 +1329,7 @@ Format: `ST_H3KRing(cell: Long, k: Int, exactRing: Boolean)`
Since: `v1.5.0`

Spark SQL example:
```SQL
```sql
SELECT ST_H3KRing(ST_H3CellIDs(ST_GeomFromWKT('POINT(1 2)'), 8, true)[0], 1, true) cells union select ST_H3KRing(ST_H3CellIDs(ST_GeomFromWKT('POINT(1 2)'), 8, true)[0], 1, false) cells
```

Expand All @@ -1354,7 +1354,7 @@ Format: `ST_H3ToGeom(cells: Array[Long])`
Since: `v1.5.0`

Spark SQL example:
```SQL
```sql
SELECT ST_H3ToGeom(ST_H3CellIDs(ST_GeomFromWKT('POINT(1 2)'), 8, true)[0], 1, true))
```

Expand Down Expand Up @@ -2199,7 +2199,7 @@ Since: `v1.4.0`

Spark SQL Example:

```SQL
```sql
SELECT ST_S2CellIDs(ST_GeomFromText('LINESTRING(1 3 4, 5 6 7)'), 6)
```

Expand Down

0 comments on commit fb565d1

Please sign in to comment.