Running examples in ‘extractFAERS-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: timetodayFAERS
> ### Title: Change all time units to days in the data filtered by
> ###   filter_by_occu_FAERS(). This function converts age and time units in
> ###   the data to days, and processes occupation and reaction data.
> ### Aliases: timetodayFAERS time_to_day_FAERS
> 
> ### ** Examples
> 
> # Example_1 Perform FAERS data preprocessing in one step and
> # generate `F_COREDATA_1PS_PROF_STU.RData` in a temporary folder.
> # In practice, it is recommended to set `usetempdir = FALSE` and specify `workingdir`
> # to prevent the processed results in the temporary folder from being automatically deleted.
> extract_FAERS_data(
+   workingdir = system.file("extdata", package = "extractFAERS"),
+   usetempdir = TRUE,
+   corenum = 2,
+   startfile = 1,
+   endfile = 4,
+   onlydoextract = FALSE,
+   occpextract = NULL
+ )
Found the following .zip files:

/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/extractFAERS/extdata/faers_ascii_2015q1_example.zip/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/extractFAERS/extdata/faers_ascii_2015q2_example.zip/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/extractFAERS/extdata/faers_ascii_2015q3_example.zip/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/extractFAERS/extdata/faers_ascii_2015q4_example.zip
Extracting:faers_ascii_2015q1_example.zip

Extracting:faers_ascii_2015q2_example.zip

Extracting:faers_ascii_2015q3_example.zip

Extracting:faers_ascii_2015q4_example.zip

Extraction complete. All files are now in:/tmp/Rtmp0ZnyN8

Files have been organized.

[1] "/tmp/Rtmp0ZnyN8/INDEX1PS/"
[1] "/tmp/Rtmp0ZnyN8/DEMO1PS/"
[1] "/tmp/Rtmp0ZnyN8/INDI1PS/"
[1] "/tmp/Rtmp0ZnyN8/REAC1PS/"
Extracting DRUG data, This may take minitues to hours

Extracting /tmp/Rtmp0ZnyN8/DEMO/ data, This may take minitues to hours

Extracting /tmp/Rtmp0ZnyN8/INDI/ data, This may take minitues to hours

Extracting /tmp/Rtmp0ZnyN8/REAC/ data, This may take minitues to hours

Filter data by reporter occupation
Using occp_cod: MD, HP, PH, OT . Available occp_cod are: , CN, MD, OT, PH

Done

Change all time unit to day
Processed file that can be used for further analysis is in:

Done

Processing complete. Processed files are in the directory returned.
The file 'F_COREDATA_1PS_PROF_STU.RData' in workingdir contains single-drug reports from the FAERS database.
This dataset can be used for further analysis or integrated with the Visdrugs Shiny application.
For more details on Visdrugs, visit: https://github.com/mrpotatod/Visdrugs_v.0.3.0
[1] "/tmp/Rtmp0ZnyN8"
> 
> # Example_2 Stepwise FAERS data preprocessing
> # Setting `onlydoextract = TRUE` extracts only single-drug cases and organizes file paths.
> # The processed file paths are saved in a temporary directory.
> extractfaerspath <- extract_FAERS_data(
+   workingdir = system.file("extdata", package = "extractFAERS"),
+   usetempdir = TRUE,
+   corenum = 2,
+   startfile = 1,
+   endfile = 4,
+   onlydoextract = TRUE,
+   occpextract = NULL
+ )
Found the following .zip files:

/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/extractFAERS/extdata/faers_ascii_2015q1_example.zip/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/extractFAERS/extdata/faers_ascii_2015q2_example.zip/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/extractFAERS/extdata/faers_ascii_2015q3_example.zip/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/extractFAERS/extdata/faers_ascii_2015q4_example.zip
Extracting:faers_ascii_2015q1_example.zip

Extracting:faers_ascii_2015q2_example.zip

Extracting:faers_ascii_2015q3_example.zip

Extracting:faers_ascii_2015q4_example.zip

Warning in file.create(to[okay]) :
  cannot create file '/tmp/Rtmp0ZnyN8/ascii//DRUG15Q3.txt', reason 'No space left on device'
Warning in file.create(to[okay]) :
  cannot create file '/tmp/Rtmp0ZnyN8/ascii//INDI15Q1.txt', reason 'No space left on device'
Warning in file.create(to[okay]) :
  cannot create file '/tmp/Rtmp0ZnyN8/ascii//INDI15Q2.txt', reason 'No space left on device'
Warning in file.create(to[okay]) :
  cannot create file '/tmp/Rtmp0ZnyN8/ascii//INDI15Q3.txt', reason 'No space left on device'
Warning in file.create(to[okay]) :
  cannot create file '/tmp/Rtmp0ZnyN8/ascii//REAC15Q1.txt', reason 'No space left on device'
Warning in file.create(to[okay]) :
  cannot create file '/tmp/Rtmp0ZnyN8/ascii//REAC15Q2.txt', reason 'No space left on device'
Warning in file.create(to[okay]) :
  cannot create file '/tmp/Rtmp0ZnyN8/ascii//REAC15Q3.txt', reason 'No space left on device'
Warning in file.create(to[okay]) :
  cannot create file '/tmp/Rtmp0ZnyN8/ascii//INDI15Q4.txt', reason 'No space left on device'
Warning in file.create(to[okay]) :
  cannot create file '/tmp/Rtmp0ZnyN8/ascii//REAC15Q4.txt', reason 'No space left on device'
Extraction complete. All files are now in:/tmp/Rtmp0ZnyN8

Files have been organized.

[1] "/tmp/Rtmp0ZnyN8/INDEX1PS/"
[1] "/tmp/Rtmp0ZnyN8/DEMO1PS/"
[1] "/tmp/Rtmp0ZnyN8/INDI1PS/"
[1] "/tmp/Rtmp0ZnyN8/REAC1PS/"
Extracting DRUG data, This may take minitues to hours

Fatal error: cannot create 'R_TempDir'
Error in makePSOCKcluster(names = spec, ...) : 
  Cluster setup failed. 1 worker of 2 failed to connect.
Calls: extract_FAERS_data -> makeCluster -> makePSOCKcluster
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
                   user system elapsed
extract1PSFAERS   0.317  0.056  10.184
filterbyoccpFAERS 0.174  0.022  10.971