Skip to content

Commit

Permalink
updating website
Browse files Browse the repository at this point in the history
  • Loading branch information
shug0131 committed Jul 14, 2023
1 parent 9812688 commit b46a476
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Binary file added R/eudract_0.10.2.tar.gz
Binary file not shown.
Binary file added R/eudract_0.10.2.zip
Binary file not shown.
21 changes: 21 additions & 0 deletions R/xml2_validation_bug.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
install.packages("eudract")
rm(list=ls())
# Forcing it to use a mapped drive on Windows
.libPaths("U:/My Documents/R/win-library/4.1")
original <- system.file("extdata", "1234.xml", package = "eudract")
original <- xml2::read_xml(original)
schema_output <- system.file("extdata", "ProtocolRecordSchema.xsd",package = "eudract")
schema_output <- xml2::read_xml(schema_output)
xml2::xml_validate(original, schema_output)
# Works fine
.libPaths("\\\\me-filer1/home$/sjb277/My Documents/R/win-library/4.1")
# This is in fact the same directory as previously set but using non-mapped network drive paths
xml2::xml_validate(original, schema_output)
# Still works
# Read in the schema afresh
schema_output <- system.file("extdata", "ProtocolRecordSchema.xsd",package = "eudract")
schema_output <- xml2::read_xml(schema_output)
xml2::xml_validate(original, schema_output)
# now it fails.


0 comments on commit b46a476

Please sign in to comment.