Skip to content

Commit

Permalink
Fix errors within example code for data sources
Browse files Browse the repository at this point in the history
  • Loading branch information
johngrimes committed Dec 19, 2023
1 parent e9210a0 commit 4cd3a28
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ spark-warehouse

.Rproj.user
/lib/R/pathlyr/.Rhistory
*.Rcheck
1 change: 0 additions & 1 deletion lib/R/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ man/*.Rd
NAMESPACE
DESCRIPTION
tests/testthat/testdata
*.Rcheck
6 changes: 3 additions & 3 deletions lib/R/R/datasource.R
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ invoke_datasink <- function(ds, name, ...) {
#' @seealso \href{https://pathling.csiro.au/docs/libraries/fhirpath-query#ndjson-1}{Pathling documentation - Writing NDJSON}
#'
#' @examplesIf pathling_is_spark_installed()
#' pc <- pathling_connect(sc)
#' pc <- pathling_connect()
#' data_source <- pc %>% pathling_read_ndjson(pathling_examples('ndjson'))
#'
#' # Write the data to a directory of NDJSON files.
Expand Down Expand Up @@ -287,7 +287,7 @@ ds_write_ndjson <- function(ds, path, file_name_mapper = NULL) {
#' @seealso \href{https://pathling.csiro.au/docs/libraries/fhirpath-query#parquet-1}{Pathling documentation - Writing Parquet}
#'
#' @examplesIf pathling_is_spark_installed()
#' pc <- pathling_connect(sc)
#' pc <- pathling_connect()
#' data_source <- pc %>% pathling_read_ndjson(pathling_examples('ndjson'))
#'
#' # Write the data to a directory of Parquet files.
Expand Down Expand Up @@ -318,7 +318,7 @@ ds_write_parquet <- function(ds, path) {
#' @seealso \code{\link{ImportMode}}
#'
#' @examplesIf pathling_is_spark_installed()
#' pc <- pathling_connect(sc)
#' pc <- pathling_connect()
#' data_source <- pc %>% pathling_read_ndjson(pathling_examples('ndjson'))
#'
#' # Write the data to a directory of Delta files.
Expand Down
7 changes: 2 additions & 5 deletions lib/R/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,8 @@
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>CMD</argument>
<argument>INSTALL</argument>
<argument>--preclean</argument>
<argument>--no-multiarch</argument>
<argument>--with-keep.source</argument>
<argument>.</argument>
<argument>install</argument>
<argument>target/${pathling.Rapi.packageName}_${pathling.Rapi.version}.tar.gz</argument>
</arguments>
</configuration>
</execution>
Expand Down

0 comments on commit 4cd3a28

Please sign in to comment.